public function getRequest($type = 'json', $return_array = array()) { if (!empty($this->params)) { $data_class = \TeoPHP\lib\Security::getInstance($_REQUEST, $this->params, $this->isXSS)->verifyParam($this->request); if ($data_class->getErrorCode()) { Application::getLogger(__CLASS__ . ':' . __LINE__)->addError('Parameter error', $data_class->getErrorData()); if ($type == 'html') { Application::getTemplate($this->address)->display($return_array[0], $return_array[1]); } else { Application::getJson(array($data_class->getErrorParam()), $data_class->getErrorCode(), 'Parameter error')->returnJson(); } } } return $this->request; }