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. 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. // $this->add_post_hook( 
  9. // 'save',  
  10. // 'Propagate thumbnail dimensions',  
  11. // 'Hook_Propagate_Thumbnail_Dimensions_To_Settings' 
  12. // ); 
  13. /** 
  14. * Initializes the mapper 
  15. * @param string|array|FALSE $context 
  16. */ 
  17. function initialize() 
  18. parent::initialize('displayed_gallery'); 
  19. /** 
  20. * Gets a singleton of the mapper 
  21. * @param string|array $context 
  22. * @return C_Displayed_Gallery_Mapper 
  23. */ 
  24. public static function get_instance($context = False) 
  25. if (!isset(self::$_instances[$context])) { 
  26. self::$_instances[$context] = new C_Displayed_Gallery_Mapper($context); 
  27. return self::$_instances[$context];