C_GalleryStorage_Driver_Base

Class C_GalleryStorage_Driver_Base.

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_GalleryStorage_Driver_Base extends C_GalleryStorage_Base 
  2. public static $_instances = array(); 
  3. function define($context = FALSE) 
  4. parent::define($context); 
  5. $this->add_mixin('Mixin_GalleryStorage_Driver_Base'); 
  6. $this->implement('I_GalleryStorage_Driver'); 
  7. function initialize() 
  8. parent::initialize(); 
  9. $this->_gallery_mapper = C_Gallery_Mapper::get_instance(); 
  10. $this->_image_mapper = C_Image_Mapper::get_instance(); 
  11. public static function get_instance($context = False) 
  12. if (!isset(self::$_instances[$context])) { 
  13. self::$_instances[$context] = new C_GalleryStorage_Driver_Base($context); 
  14. return self::$_instances[$context]; 
  15. /** 
  16. * Gets the class name of the driver used 
  17. * @return string 
  18. */ 
  19. function get_driver_class_name() 
  20. return get_called_class();