Tipsy\Route::__construct PHP Метод

__construct() публичный Метод

public __construct ( $args )
    public function __construct($args)
    {
        $this->_controller = $args['controller'];
        $this->_caseSensitive = $args['caseSensitive'] ? true : false;
        $this->_view = $args['view'] ? true : false;
        if ($args['route'][0] == '/' && !@preg_match($args['route'], null)) {
            $this->_route = $args['route'];
            $this->_regex = true;
        } else {
            $this->_route = preg_replace('/^\\/?(.*?)\\/?$/i', '\\1', $args['route']);
        }
        $this->_tipsy = $args['tipsy'];
        $this->_method = $args['method'] == 'all' ? '*' : $args['method'];
        $this->_routeParams = new RouteParams();
    }