Exemplo n.º 1
0
 /**
  * @param array $injectors
  */
 public function __construct(array $injectors = array())
 {
     parent::__construct($injectors + array('params' => array(), 'query' => $_GET, 'data' => $_POST, 'files' => $_FILES, 'server' => $_SERVER, '_cookies' => $_COOKIE, 'app' => null));
     $this->app =& $this->injectors['app'];
     /**
      * Support input JSON data
      */
     if (!$this->injectors['data'] && strpos($this->type(), '/json')) {
         $_POST = json_decode($this->body(), true);
     }
 }
Exemplo n.º 2
0
 /**
  * @param array $injectors
  */
 public function __construct(array $injectors = array())
 {
     parent::__construct($injectors + array('status' => 0, 'body' => ''));
     $this->app =& $this->injectors['app'];
     $this->locals =& $this->app->locals;
 }
Exemplo n.º 3
0
 /**
  * @param array $injectors
  */
 public function __construct(array $injectors = array())
 {
     parent::__construct($injectors + array('status' => 200, 'body' => '', 'content_type' => 'text/html', 'length' => false, 'charset' => $injectors['app']->charset, 'headers' => array(), 'cookies' => array(), 'app' => null));
     $this->app =& $this->injectors['app'];
     $this->locals =& $this->app->locals;
 }
Exemplo n.º 4
0
Arquivo: Input.php Projeto: pagon/core
 /**
  * @param array $injectors
  */
 public function __construct(array $injectors = array())
 {
     parent::__construct($injectors + array('params' => array(), 'app' => null) + $_SERVER);
     $this->app =& $this->injectors['app'];
 }
Exemplo n.º 5
0
Arquivo: Input.php Projeto: pagon/core
 /**
  * @param array $injectors
  */
 public function __construct(array $injectors = array())
 {
     parent::__construct($injectors + array('params' => array(), 'query' => &$_GET, 'data' => &$_POST, 'files' => &$_FILES, 'server' => &$_SERVER, 'app' => null));
     $this->app =& $this->injectors['app'];
 }