QuickBooks/Callbacks/API/Callbacks.php
protected static function _mapToQuickBooksID($func, $user, $type, $ID)
	{
		if (strlen($func))
		{
			if (false === strpos($func, '::'))
			{
				return $func($type, $ID); 
			}
			else
			{
				$tmp = explode('::', $func);
				
				return call_user_func(array( $tmp[0], $tmp[1] ), $type, $ID);
			}
		}
		else
		{
			$editsequence = '';
			$extra = null;
			
			//print('mapping: ' . $user . ', ' . $type . ', ' . $ID . "\n");
			
			$Driver = QuickBooks_Driver_Singleton::getInstance();
			$ListID_or_TxnID = $Driver->identToQuickBooks($user, $type, $ID, $editsequence, $extra);
			
			//print('got back: ' . $ListID_or_TxnID . "\n");
			
			return $ListID_or_TxnID;
		}
	}
protected static function _mapToQuickBooksID($func, $user, $type, $ID)
	{
		if (strlen($func))
		{
			if (false === strpos($func, '::'))
			{
				return $func($type, $ID); 
			}
			else
			{
				$tmp = explode('::', $func);
				
				return call_user_func(array( $tmp[0], $tmp[1] ), $type, $ID);
			}
		}
		else
		{
			$editsequence = '';
			$extra = null;
			
			//print('mapping: ' . $user . ', ' . $type . ', ' . $ID . "\n");
			
			$Driver = QuickBooks_Driver_Singleton::getInstance();
			$ListID_or_TxnID = $Driver->identToQuickBooks($user, $type, $ID, $editsequence, $extra);
			
			//print('got back: ' . $ListID_or_TxnID . "\n");
			
			return $ListID_or_TxnID;
		}
	}
Map an application primary key to a QuickBooks ListID or TxnID

@param string $type		The type of object (i.e.: QUICKBOOKS_OBJECT_CUSTOMER, QUICKBOOKS_OBJECT_INVOICE, etc.)
@param mixed $ID			The primary key of the record
@return string			The ListID or TxnID (or NULL if it couldn't be mapped)