C_Album

Class C_Album.

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_Album extends C_DataMapper_Model 
  2. var $_mapper_interface = 'I_Album_Mapper'; 
  3. function define($properties = array(), $mapper = FALSE, $context = FALSE) 
  4. parent::define($mapper, $properties, $context); 
  5. $this->add_mixin('Mixin_NextGen_Album_Instance_Methods'); 
  6. $this->implement('I_Album'); 
  7. /** 
  8. * Instantiates an Album object 
  9. * @param bool|\C_DataMapper|\FALSE $mapper 
  10. * @param array $properties 
  11. */ 
  12. function initialize($properties = array(), $mapper = FALSE, $context = FALSE) 
  13. // Get the mapper is not specified 
  14. if (!$mapper) { 
  15. $mapper = $this->get_registry()->get_utility($this->_mapper_interface); 
  16. // Initialize 
  17. parent::initialize($mapper, $properties);