/** * Starts the processing of the requests, fetches params and passes control to the request dispatcher * @return void */ public function processRequest() { $strModule = class_carrier::getInstance()->getParam("module"); $strAction = class_carrier::getInstance()->getParam("action"); $strLanguageParam = class_carrier::getInstance()->getParam("language"); $this->objResponse = class_response_object::getInstance(); $this->objResponse->setStrResponseType(class_http_responsetypes::STR_TYPE_XML); $this->objResponse->setStrStatusCode(class_http_statuscodes::SC_OK); $objDispatcher = new class_request_dispatcher($this->objResponse); $objDispatcher->processRequest(_admin_, $strModule, $strAction, $strLanguageParam); if ($this->objResponse->getStrContent() == "") { class_response_object::getInstance()->setStrStatusCode(class_http_statuscodes::SC_BADREQUEST); $this->objResponse->setStrContent("<error>An error occurred, malformed request</error>"); } if ($this->objResponse->getStrResponseType() == class_http_responsetypes::STR_TYPE_XML && self::$bitRenderXmlHeader) { $this->objResponse->setStrContent("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" . $this->objResponse->getStrContent()); } }