Example #1
0
 /**
  * Magic __get to add some accesses for request context
  * @param string $name
  * @return mixed
  */
 public function __get($name)
 {
     if (in_array($name, array('query', 'post', 'file', 'header', 'cookie', 'session'))) {
         $method = 'get' . ucfirst($name);
         return $this->{$method}();
     }
     return parent::__get($name);
 }
Example #2
0
 /**
  * Gets the array of implements for this mixin
  * @var array
  */
 protected static function _getImplements()
 {
     return array_merge_recursive(parent::_getImplements(), array('Nimbles\\Core\\Delegates\\Delegatable' => array('delegates' => array('getInput' => array('\\Nimbles\\Cli\\Request', 'getStdin')))));
 }