/** * Constructs an instance of the CPS_RollbackTransactionRequest class. */ public function __construct() { parent::__construct("rollback-transaction"); }
/** * Constructs an instance of the CPS_StaticRequest class. * @param string $xml the full XML string to send * @param string $command specifies which command is being sent. This is not mandatory for sending * the request per se, but how the response will be parsed will depend on this setting, so if you * want full response parsing from the API, you should specify the command here. Note that setting this * parameter will not change the XML being sent to the database */ public function __construct($xml, $command = '') { parent::__construct($command); $this->_renderedXml = $xml; }
/** * This is called by CPS_Connection whenever there is a new request to be sent. This method should not be used directly. * @ignore * @param CPS_Request &$request the request before being rendered */ public function newRequest(CPS_Request &$request) { if (!array_search(strtolower($request->getCommand()), $this->_non_retry_cmds)) { $this->_retryRequests = true; } else { $this->_retryRequests = false; } if ($this->_numUsed == count($this->_connectionStrings)) { // reset state if there's nowhere to send to $this->_usedConnections = array(); $this->_numUsed = 0; $this->_lastReturnedIndex = -1; $this->_lastSuccess = false; } }