C_Displayed_Gallery_Mapper

Class C_Displayed_Gallery_Mapper.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php  
  1. class C_Displayed_Gallery_Mapper extends C_CustomPost_DataMapper_Driver 
  2. static $_instances = array(); 
  3. public function define($context = FALSE, $not_used = FALSE) 
  4. parent::define('displayed_gallery', array($context, 'displayed_gallery', 'display_gallery')); 
  5. $this->add_mixin('Mixin_Displayed_Gallery_Defaults'); 
  6. $this->implement('I_Displayed_Gallery_Mapper'); 
  7. $this->set_model_factory_method('displayed_gallery'); 
  8. /** 
  9. * Initializes the mapper 
  10. * @param string|array|FALSE $context 
  11. */ 
  12. public function initialize() 
  13. parent::initialize('displayed_gallery'); 
  14. /** 
  15. * Gets a singleton of the mapper 
  16. * @param string|array $context 
  17. * @return C_Displayed_Gallery_Mapper 
  18. */ 
  19. public static function get_instance($context = False) 
  20. if (!isset(self::$_instances[$context])) { 
  21. self::$_instances[$context] = new C_Displayed_Gallery_Mapper($context); 
  22. return self::$_instances[$context];