Esempio n. 1
0
 /**
  * Map a type and application primary key to a QuickBooks EditSequence string
  * 
  * @param string $type		The type of object
  * @param mixed $ID			The application primary key
  * @return string			The QuickBooks EditSequence string
  */
 protected function _mapToEditSequence($type, $ID)
 {
     $editsequence = '';
     $extra = null;
     if (strlen($this->_config['map_to_editsequence_handler'])) {
         $func = $this->_config['map_to_editsequence_handler'];
         if (false === strpos($func, '::')) {
             return $func($type, $ID);
         } else {
             $tmp = explode('::', $func);
             return call_user_func(array($tmp[0], $tmp[1]), $type, $ID);
         }
     } else {
         if ($ListID_or_TxnID = $this->_driver->identToQuickBooks($this->_user, $type, $ID, $editsequence, $extra)) {
             return $editsequence;
         }
     }
     return null;
 }