/** * Prints the response object to the output stream, thus sending the response to the client * * @return void */ public function send() { if ($this->xResponse) { foreach ($this->aDebugMessages as $sMessage) { $this->xResponse->debug($sMessage); } $this->aDebugMessages = array(); $this->xResponse->sendHeaders(); $this->xResponse->printOutput(); } }
/** * Add a client side plugin command to the response object * * Used internally to add a command to the response command list. * This will call <Jaxon\Response\Response->addPluginCommand> using the * reference provided in <Jaxon\Response\Response->setResponse>. * * @param array $aAttributes The attributes of the command * @param string $sData The data to be added to the command * * @return void */ public function addCommand($aAttributes, $sData) { $this->xResponse->addPluginCommand($this, $aAttributes, $sData); }