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(); } }
public function parseUrl() { if (Get::_get('url') != null) { return $url = explode('/', filter_var(rtrim(Get::_get('url'), '/'), FILTER_SANITIZE_URL)); } }
public static function i($key, $default = 0) { $i = Get::_get($key, $default); return is_numeric($i) ? intval($i) : $default; }