/** * Call the mapped function for a given action * * @param integer $which Whether or call the request action handler (pass a 0) or the response action handler (pass a 1) * @param string $user QuickBooks username of the user the request/response is for * @param string $action * @param mixed $ident * @param mixed $extra * @param string $err If the function returns an error message, the error message will be stored here * @param integer $last_action_time * @param integer $last_actionident_time * @param string $xml A qbXML response (if you're calling the response handler) * @param array $qb_identifier * @return string */ protected function _callMappedFunction($which, $user, $action, $ident, $extra, &$err, $last_action_time, $last_actionident_time, $xml_or_version = '', $qb_identifier_or_locale = array(), $qbxml = null) { if ($which == 0) { return QuickBooks_Callbacks::callRequestHandler($this->_driver, $this->_map, $action, $user, $action, $ident, $extra, $err, $last_action_time, $last_actionident_time, $xml_or_version, $qb_identifier_or_locale, $this->_callback_config, $qbxml); } else { if ($which == 1) { return QuickBooks_Callbacks::callResponseHandler($this->_driver, $this->_map, $action, $user, $action, $ident, $extra, $err, $last_action_time, $last_actionident_time, $xml_or_version, $qb_identifier_or_locale, $this->_callback_config, $qbxml); } } $err = 'Request for a mapped function could not be fulfilled, invalid $which parameter.'; return false; }