protected function _callHook($ticket, $hook, $requestID, $action, $ident, $extra, &$err, $xml = '', $qb_identifiers = array(), $hook_data = array())
	{
		$user = '';
		if ($ticket)
		{
			$user = $this->_driver->authResolve($ticket);
		}

		// Call the hook
		$ret = QuickBooks_Callbacks::callHook($this->_driver, $this->_hooks, $hook, $requestID, $user, $ticket, $err, $hook_data, $this->_callback_config, __FILE__, __LINE__);

		// If the hook reported an error, log the error
		if ($err)
		{
			$errerr = '';
			$this->_handleError($ticket, QUICKBOOKS_ERROR_HOOK, $err, $requestID, $action, $ident, $extra, $errerr, $xml, $qb_identifiers);
		}

		return true;
	}
protected function _callHook($ticket, $hook, $requestID, $action, $ident, $extra, &$err, $xml = '', $qb_identifiers = array(), $hook_data = array())
	{
		$user = '';
		if ($ticket)
		{
			$user = $this->_driver->authResolve($ticket);
		}

		// Call the hook
		$ret = QuickBooks_Callbacks::callHook($this->_driver, $this->_hooks, $hook, $requestID, $user, $ticket, $err, $hook_data, $this->_callback_config, __FILE__, __LINE__);

		// If the hook reported an error, log the error
		if ($err)
		{
			$errerr = '';
			$this->_handleError($ticket, QUICKBOOKS_ERROR_HOOK, $err, $requestID, $action, $ident, $extra, $errerr, $xml, $qb_identifiers);
		}

		return true;
	}
protected function _callHook ( $ ticket , $ hook , $ requestID , $ action , $ ident , $ extra , & $ err , $ xml = '' , $ qb_identifiers = array ( ) , $ hook_data = array ( ) ) { $ user = '' ; if ( $ ticket ) { $ user = $ this -> _driver -> authResolve ( $ ticket ) ; } // Call the hook $ ret = QuickBooks_Callbacks :: callHook ( $ this -> _driver , $ this -> _hooks , $ hook , $ requestID , $ user , $ ticket , $ err , $ hook_data , $ this -> _callback_config , __FILE__ , __LINE__ ) ; // If the hook reported an error, log the error if ( $ err ) { $ errerr = '' ; $ this -> _handleError ( $ ticket , QUICKBOOKS_ERROR_HOOK , $ err , $ requestID , $ action , $ ident , $ extra , $ errerr , $ xml , $ qb_identifiers ) ; } return true ; }
Call a user-defined hook

@param string $ticket
@param string $hook
@param string $requestID
@param string $action
@param mixed $ident
@param mixed $extra
@param string $err
@param string $xml
@param array $qb_identifiers
@param array $hook_data
@return boolean
Call a user - defined hook