C_Displayed_Gallery

Associates a Display Type with a collection of images.

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 extends C_DataMapper_Model 
  2. var $_mapper_interface = 'I_Displayed_Gallery_Mapper'; 
  3. function define($properties = array(), $mapper = FALSE, $context = FALSE) 
  4. parent::define($mapper, $properties, $context); 
  5. $this->add_mixin('Mixin_Displayed_Gallery_Validation'); 
  6. $this->add_mixin('Mixin_Displayed_Gallery_Instance_Methods'); 
  7. $this->add_mixin('Mixin_Displayed_Gallery_Queries'); 
  8. $this->implement('I_Displayed_Gallery'); 
  9. /** 
  10. * Initializes a display type with properties 
  11. * @param FALSE|C_Displayed_Gallery_Mapper $mapper 
  12. * @param array|stdClass|C_Displayed_Gallery $properties 
  13. * @param FALSE|string|array $context 
  14. */ 
  15. function initialize($properties = array(), $mapper = FALSE, $context = FALSE) 
  16. if (!$mapper) { 
  17. $mapper = $this->get_registry()->get_utility($this->_mapper_interface); 
  18. parent::initialize($mapper, $properties); 
  19. $this->select_random_variation();