/** * * * @param string $method * @param string $action * @param string $type * @param string $qbxml * @param array $callbacks * @param mixed $uniqueid * @param integer $priority * @param string $err * @param integer $recur * @return boolean */ public function handleQBXML($method, $action, $type, $qbxml, $callbacks, $uniqueid, $priority, &$err, $recur = null) { if (strlen($uniqueid) == 0) { $uniqueid = md5(time() . $this->_user . mt_rand()); } // The qbXML requests that get passed to this function are without the // typical qbXML wrapper info, so we need to modify them to make them // into complete, valid requests. $qbxml = $this->_makeValidQBXML($qbxml, $this->_config['qbxml_version'], $this->_config['qbxml_onerror']); $extra = array('method' => $method, 'action' => $action, 'type' => $type, 'api' => true, 'uniqueid' => $uniqueid, 'callbacks' => $callbacks, 'options' => $this->_config, 'recur' => $recur); //print_r($qbxml); if ($recur) { return $this->_driver->recurEnqueue($this->_user, $recur, $action, $uniqueid, true, $priority, $extra, $qbxml); } else { return $this->_driver->queueEnqueue($this->_user, $action, $uniqueid, true, $priority, $extra, $qbxml); } }