Exemple #1
0
 private static function init()
 {
     if (is_null(self::$data)) {
         self::$data = [];
         $input = Arr::dot($_REQUEST);
         foreach ($input as $k => $v) {
             Arr::set(self::$data, $k, Str::e($v));
         }
     }
 }
Exemple #2
0
 static function add($filter, $func)
 {
     Arr::set(self::$filters, $filter, $func);
 }
Exemple #3
0
 static function put($k, $v)
 {
     self::init();
     Arr::set($_SESSION, $k, $v);
 }
Exemple #4
0
 static function set($k, $v)
 {
     Arr::set(self::$config, $k, $v);
 }