M_Router

The NextGEN Gallery M Router class.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/router/module.router.php  
  1. class M_Router extends C_Base_Module 
  2. function define($id = 'pope-module',  
  3. $name = 'Pope Module',  
  4. $description = '',  
  5. $version = '',  
  6. $uri = '',  
  7. $author = '',  
  8. $author_uri = '',  
  9. $context = FALSE) 
  10. parent::define( 
  11. 'photocrati-router',  
  12. 'Router for Pope',  
  13. 'Provides routing capabilities for Pope modules',  
  14. '0.9',  
  15. 'https://www.imagely.com',  
  16. 'Imagely',  
  17. 'https://www.imagely.com' 
  18. ); 
  19.  
  20. C_Photocrati_Installer::add_handler($this->module_id, 'C_Router_Installer'); 
  21.  
  22. function _register_utilities() 
  23. $this->get_registry()->add_utility('I_Router', 'C_Router'); 
  24.  
  25. function _register_adapters() 
  26. $this->get_registry()->add_adapter('I_Component_Factory', 'A_Routing_App_Factory'); 
  27.  
  28. function get_type_list() 
  29. return array( 
  30. 'C_Router_Installer' => 'class.router_installer.php',  
  31. 'A_Routing_App_Factory' => 'adapter.routing_app_factory.php',  
  32. 'C_Router' => 'class.router.php',  
  33. 'C_Http_Response_Controller' => 'class.http_response_controller.php',  
  34. 'C_Routing_App' => 'class.routing_app.php',  
  35. 'Mixin_Url_Manipulation' => 'mixin.url_manipulation.php' 
  36. );