Zaphpa_Router::getRoutes PHP Method

getRoutes() private method

Please note this method is performance-optimized to only return routes for current type of HTTP method
private getRoutes ( $all = false )
    private function getRoutes($all = false)
    {
        if ($all) {
            return $this->routes;
        }
        $method = self::getRequestMethod();
        $routes = empty($this->routes[$method]) ? array() : $this->routes[$method];
        return $routes;
    }