C_Display_Type
A Display Type is a component which renders a collection of images in a "gallery".
Defined (1)
The class is defined in the following location(s).
- /products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php
- class C_Display_Type extends C_DataMapper_Model
- {
- public $_mapper_interface = 'I_Display_Type_Mapper';
- public function define($properties = array(), $mapper = FALSE, $context = FALSE)
- {
- parent::define($mapper, $properties, $context);
- $this->add_mixin('Mixin_Display_Type_Validation');
- $this->add_mixin('Mixin_Display_Type_Instance_Methods');
- $this->implement('I_Display_Type');
- }
- /**
- * Initializes a display type with properties
- * @param FALSE|C_Display_Type_Mapper $mapper
- * @param array|stdClass|C_Display_Type $properties
- * @param FALSE|string|array $context
- */
- public function initialize($properties = array(), $mapper = FALSE, $context = FALSE)
- {
- // If no mapper was specified, then get the mapper
- if (!$mapper) {
- $mapper = $this->get_registry()->get_utility($this->_mapper_interface);
- }
- // Construct the model
- parent::initialize($mapper, $properties);
- }
- /**
- * Allows a setting to be retrieved directly, rather than through the
- * settings property
- * @param string $property
- * @return mixed
- */
- public function &__get($property)
- {
- if (isset($this->settings) && isset($this->settings[$property])) {
- $retval =& $this->settings[$property];
- return $retval;
- } else {
- return parent::__get($property);
- }
- }
- }