public function getEventNameForRoute(RequestAbstract $request)
    {
        // Loop trough the priorities
        foreach ($this->routes as $priority => $routes) {
            // Loop trough the routes for each priority
            foreach ($routes as $route => $eventName) {
                $result = $this->compareRoute($route, $request);
                
                if ($result) {
                    // The routes are equal - we have an event name
                    return $eventName;
                }
            }
        }
        
        return false;
    }
public function getEventNameForRoute(RequestAbstract $request)
    {
        // Loop trough the priorities
        foreach ($this->routes as $priority => $routes) {
            // Loop trough the routes for each priority
            foreach ($routes as $route => $eventName) {
                $result = $this->compareRoute($route, $request);
                
                if ($result) {
                    // The routes are equal - we have an event name
                    return $eventName;
                }
            }
        }
        
        return false;
    }
public function getEventNameForRoute ( RequestAbstract $ request ) { // Loop trough the priorities foreach ( $ this -> routes as $ priority => $ routes ) { // Loop trough the routes for each priority foreach ( $ routes as $ route => $ eventName ) { $ result = $ this -> compareRoute ( $ route , $ request ) ; if ( $ result ) { // The routes are equal - we have an event name return $ eventName ; } } } return false ; }
Returns the event name for the given request. The function uses
the first possible match. The routes are sorted by the priority.

@access public
@param \Zepi\Turbo\Request\RequestAbstract $request
@return false|string
Returns the event name for the given request . The function uses the first possible match . The routes are sorted by the priority .