예제 #1
0
 public function __construct()
 {
     $modules = func_get_args();
     $this->path = path_decode(Get::_get('n', null));
     $this->handlers = array();
     $this->handlers = array();
     foreach ($modules as $module) {
         $m = GLModule::factory($module);
         $this->modules[$module] = $m;
         $this->handlers += $m->handlers();
     }
 }
예제 #2
0
파일: App.php 프로젝트: Hawiak/harmstercms
 public function parseUrl()
 {
     if (Get::_get('url') != null) {
         return $url = explode('/', filter_var(rtrim(Get::_get('url'), '/'), FILTER_SANITIZE_URL));
     }
 }
예제 #3
0
 public static function i($key, $default = 0)
 {
     $i = Get::_get($key, $default);
     return is_numeric($i) ? intval($i) : $default;
 }