Habari\Controller::get_var PHP Метод

get_var() публичный статический Метод

This includes only parameters set on the url. The alternative to this, while possible to write, is just too long.
public static get_var ( string $name, mixed $default = null ) : mixed
$name string The name of the variable to return.
$default mixed A default value to return if the variable is not set.
Результат mixed The value of that variable in the handler
    public static function get_var($name, $default = null)
    {
        return isset(Controller::instance()->handler->handler_vars[$name]) ? Controller::instance()->handler->handler_vars[$name] : $default;
    }