C_Routing_App

Class C_Routing_App.

Defined (1)

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

/products/photocrati_nextgen/modules/router/package.module.router.php  
  1. class C_Routing_App extends C_Component 
  2. static $_instances = array(); 
  3. public $_request_uri = FALSE; 
  4. public $_settings = null; 
  5. public function define($context = FALSE) 
  6. parent::define($context); 
  7. $this->add_mixin('Mixin_Url_Manipulation'); 
  8. $this->add_mixin('Mixin_Routing_App'); 
  9. $this->implement('I_Routing_App'); 
  10. public function initialize() 
  11. parent::initialize(); 
  12. $this->_settings = $this->object->get_routing_settings(); 
  13. public function get_routing_settings() 
  14. $settings = C_NextGen_Settings::get_instance(); 
  15. $object = new stdClass(); 
  16. $object->router_param_separator = $settings->router_param_separator; 
  17. $object->router_param_slug = $settings->router_param_slug; 
  18. $object->router_param_prefix = $settings->router_param_prefix; 
  19. return $object; 
  20. static function &get_instance($context = False) 
  21. if (!isset(self::$_instances[$context])) { 
  22. self::$_instances[$context] = new C_Routing_App($context); 
  23. return self::$_instances[$context];