M_MVC

TODO: The file below should be deprecated.

Defined (1)

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

/products/photocrati_nextgen/modules/mvc/module.mvc.php  
  1. class M_MVC 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-mvc',  
  12. 'MVC Framework',  
  13. 'Provides an MVC architecture for the plugin to use',  
  14. '0.8',  
  15. 'https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery',  
  16. 'Imagely',  
  17. 'https://www.imagely.com' 
  18. ); 
  19.  
  20. C_NextGen_Settings::get_instance()->add_option_handler('C_Mvc_Option_Handler', array( 
  21. 'mvc_template_dir',  
  22. 'mvc_template_dirname',  
  23. 'mvc_static_dir',  
  24. 'mvc_static_dirname' 
  25. )); 
  26.  
  27. if (is_multisite()) C_NextGen_Global_Settings::get_instance()->add_option_handler('C_Mvc_Option_Handler', array( 
  28. 'mvc_template_dir',  
  29. 'mvc_template_dirname',  
  30. 'mvc_static_dir',  
  31. 'mvc_static_dirname' 
  32. )); 
  33.  
  34.  
  35. function _register_utilities() 
  36. $this->get_registry()->add_utility('I_Http_Response', 'C_Http_Response_Controller'); 
  37.  
  38. function _register_adapters() 
  39. $this->get_registry()->add_adapter('I_Fs', 'A_MVC_Fs'); 
  40. $this->get_registry()->add_adapter('I_Router', 'A_MVC_Router'); 
  41. $this->get_registry()->add_adapter('I_Component_Factory', 'A_MVC_Factory'); 
  42.  
  43. function get_type_list() 
  44. return array( 
  45. 'A_Mvc_Factory' => 'adapter.mvc_factory.php',  
  46. 'A_Mvc_Fs' => 'adapter.mvc_fs.php',  
  47. 'A_Mvc_Router' => 'adapter.mvc_router.php',  
  48. 'C_Mvc_Installer' => 'class.mvc_installer.php',  
  49. 'C_Mvc_Controller' => 'class.mvc_controller.php',  
  50. 'C_Mvc_View' => 'class.mvc_view.php',  
  51. 'C_Mvc_View_Element' => 'class.mvc_view_element.php' 
  52. );