protected function getRouterObject()
    {
        if ($this->routerObj !== null) {
            return $this->routerObj;
        }

        /*
         * Load up each route rule
         */
        $router = new RainRouter();
        foreach ($this->getUrlMap() as $pageInfo) {
            $router->route($pageInfo['file'], $pageInfo['pattern']);
        }

        /*
         * Sort all the rules
         */
        $router->sortRules();

        return $this->routerObj = $router;
    }
protected function getRouterObject()
    {
        if ($this->routerObj !== null) {
            return $this->routerObj;
        }

        /*
         * Load up each route rule
         */
        $router = new RainRouter();
        foreach ($this->getUrlMap() as $pageInfo) {
            $router->route($pageInfo['file'], $pageInfo['pattern']);
        }

        /*
         * Sort all the rules
         */
        $router->sortRules();

        return $this->routerObj = $router;
    }
protected function getRouterObject ( ) { if ( $ this -> routerObj !== null ) { return $ this -> routerObj ; } /*
         * Load up each route rule
         */ $ router = new RainRouter ( ) ; foreach ( $ this -> getUrlMap ( ) as $ pageInfo ) { $ router -> route ( $ pageInfo [ 'file' ] , $ pageInfo [ 'pattern' ] ) ; } /*
         * Sort all the rules
         */ $ router -> sortRules ( ) ; return $ this -> routerObj = $ router ; }
Autoloads the URL map only allowing a single execution.
@return array Returns the URL map.
Autoloads the URL map only allowing a single execution .