Beispiel #1
0
 /**
  * @return Gio_Core_Response
  */
 public static function getInstance()
 {
     if (null == self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Beispiel #2
0
 public function __construct()
 {
     $this->view = clone Gio_Core_View::getInstance();
     $this->_request = Gio_Core_Request::getInstance();
     $this->_response = Gio_Core_Response::getInstance();
     $this->_translationDao = new Modules_Core_Models_Mysql_Translation();
 }
Beispiel #3
0
 public static function error($code = 'DATA_NOT_FOUND', $message = null)
 {
     $configs = Gio_Core_Config_Xml::getConfig('web');
     $request = Gio_Core_Request::getInstance();
     $request->setParam('code', $code);
     $request->setParam('message', $message);
     $request->setParam('__GIOCMS_ERROR__', true);
     $content = Gio_Core_Controller::getIntance()->setTemplate($configs->admin->template)->setLayout('message')->setModuleName('core')->setControllerName('exception')->setActionName('error')->dispatch(true);
     Gio_Core_Response::getInstance()->setBody($content);
 }
Beispiel #4
0
 public function __construct()
 {
     $this->view = Gio_Core_View::getInstance();
     $this->_request = Gio_Core_Request::getInstance();
     $this->_response = Gio_Core_Response::getInstance();
 }