C_Gallery_Storage

Class C_Gallery_Storage.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php  
  1. class C_Gallery_Storage extends C_GalleryStorage_Base 
  2. public static $_instances = array(); 
  3. public function define($context = FALSE) 
  4. parent::define($context); 
  5. $this->add_mixin('Mixin_GalleryStorage'); 
  6. $this->wrap('I_GalleryStorage_Driver', array(&$this, '_get_driver'), $context); 
  7. $this->implement('I_Gallery_Storage'); 
  8. static function get_instance($context = False) 
  9. if (!isset(self::$_instances[$context])) { 
  10. self::$_instances[$context] = new C_Gallery_Storage($context); 
  11. return self::$_instances[$context]; 
  12. /** 
  13. * Returns the implementation for the gallerystorage 
  14. * @param array $args 
  15. * @return mixed 
  16. */ 
  17. public function _get_driver($context) 
  18. $factory_method = $this->_get_driver_factory_method($context); 
  19. $factory = C_Component_Factory::get_instance(); 
  20. return $factory->create($factory_method, FALSE, $context);