QuickBooks/QBXML/Object.php
public function setFullNameType($fullname_key, $name_key, $parent_key, $value)
	{
		if (false !== strpos($value, ':'))
		{
			if ($name_key and $parent_key)
			{
				// This covers the case where we are setting FullName, which 
				//	needs to be broken up into:
				//		Name
				//		ParentRef FullName
				
				$explode = explode(':', $value);
				$name = end($explode);
				$parent = implode(':', array_slice($explode, 0, -1));
				
				$this->set($name_key, $name);
				$this->set($parent_key, $parent);
				
				// Build the parent name from the newly set Name and ParentRef (need to fetch because they might have been casted/truncate)
				$value = $this->get($parent_key) . ':' . $this->get($name_key);
			}
			else
			{
				// This covers the case where we are setting 
				//	CustomerType_FullName, there is no separate parent element, 
				//	so we just set the whole chunk 
				
				; 
			}
		}
		else
		{
			$this->set($name_key, $value);
			
			// Fetch the Name (need to fetch because they might have been casted/truncate)
			$value = $this->get($name_key);
		}
		
		$this->set($fullname_key, $value);
	}
public function setFullNameType($fullname_key, $name_key, $parent_key, $value)
	{
		if (false !== strpos($value, ':'))
		{
			if ($name_key and $parent_key)
			{
				// This covers the case where we are setting FullName, which 
				//	needs to be broken up into:
				//		Name
				//		ParentRef FullName
				
				$explode = explode(':', $value);
				$name = end($explode);
				$parent = implode(':', array_slice($explode, 0, -1));
				
				$this->set($name_key, $name);
				$this->set($parent_key, $parent);
				
				// Build the parent name from the newly set Name and ParentRef (need to fetch because they might have been casted/truncate)
				$value = $this->get($parent_key) . ':' . $this->get($name_key);
			}
			else
			{
				// This covers the case where we are setting 
				//	CustomerType_FullName, there is no separate parent element, 
				//	so we just set the whole chunk 
				
				; 
			}
		}
		else
		{
			$this->set($name_key, $value);
			
			// Fetch the Name (need to fetch because they might have been casted/truncate)
			$value = $this->get($name_key);
		}
		
		$this->set($fullname_key, $value);
	}
Set a FullName field

@param string $fullname_key
@param string $name_key
@param string $parent_key
@param string $value
@return void