Changeset 22760

Show
Ignore:
Timestamp:
07/01/09 15:51:26 (9 months ago)
Author:
bergie
Message:

is_core_route is needed in all dispatchers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom_core/services/dispatcher.php

    r20604 r22760  
    3030     
    3131    public function generate_url($route_id, array $args); 
     32 
     33    private function is_core_route($route_id); 
    3234} 
    3335?> 
  • trunk/midcom/midcom_core/services/dispatcher/manual.php

    r22563 r22760  
    290290    } 
    291291 
     292    private function is_core_route($route_id) 
     293    { 
     294        if (!isset($_MIDCOM->context->component_routes)) 
     295        { 
     296            return false; 
     297        } 
     298        if (isset($_MIDCOM->context->component_routes[$route_id])) 
     299        { 
     300            return false; 
     301        } 
     302         
     303        return true; 
     304    } 
     305 
    292306    /** 
    293307     * Generates an URL for given route_id with given arguments