Esempio n. 1
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('getCookieRaw' => function () {
         return $_COOKIE;
     }, 'getQueryRaw' => function () {
         return $_GET;
     }, 'getPostRaw' => function () {
         return $_POST;
     }, 'getFilesRaw' => function () {
         return $_FILES;
     }, 'createSession' => function () {
         $session = new Session();
         $session->setDelegate('writeValue', function () {
         });
         // do nothing, make read only
         $session->setDelegate('clearValues', function () {
         });
         // do nothing, make read only
     }, 'getInput' => array('\\Nimbles\\Http\\Request', 'getRequestInput')))));
 }
Esempio n. 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')))));
 }