A_NextGen_Basic_Album_Mapper

Class A_NextGen_Basic_Album_Mapper.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_album/package.module.nextgen_basic_album.php  
  1. class A_NextGen_Basic_Album_Mapper extends Mixin 
  2. function set_defaults($entity) 
  3. $this->call_parent('set_defaults', $entity); 
  4. if (isset($entity->name) && in_array($entity->name, array(NGG_BASIC_COMPACT_ALBUM, NGG_BASIC_EXTENDED_ALBUM))) { 
  5. // Set defaults for both display (album) types 
  6. $settings = C_NextGen_Settings::get_instance(); 
  7. $this->object->_set_default_value($entity, 'settings', 'galleries_per_page', $settings->galPagedGalleries); 
  8. $this->object->_set_default_value($entity, 'settings', 'enable_breadcrumbs', 1); 
  9. $this->object->_set_default_value($entity, 'settings', 'disable_pagination', 0); 
  10. $this->object->_set_default_value($entity, 'settings', 'enable_descriptions', 0); 
  11. $this->object->_set_default_value($entity, 'settings', 'template', ''); 
  12. $this->object->_set_default_value($entity, 'settings', 'open_gallery_in_lightbox', 0); 
  13. // Thumbnail dimensions -- only used by extended albums 
  14. if ($entity->name == NGG_BASIC_EXTENDED_ALBUM) { 
  15. $this->_set_default_value($entity, 'settings', 'override_thumbnail_settings', 0); 
  16. $this->_set_default_value($entity, 'settings', 'thumbnail_width', $settings->thumbwidth); 
  17. $this->_set_default_value($entity, 'settings', 'thumbnail_height', $settings->thumbheight); 
  18. $this->_set_default_value($entity, 'settings', 'thumbnail_quality', $settings->thumbquality); 
  19. $this->_set_default_value($entity, 'settings', 'thumbnail_crop', $settings->thumbfix); 
  20. $this->_set_default_value($entity, 'settings', 'thumbnail_watermark', 0); 
  21. if (defined('NGG_BASIC_THUMBNAILS')) { 
  22. $this->object->_set_default_value($entity, 'settings', 'gallery_display_type', NGG_BASIC_THUMBNAILS); 
  23. $this->object->_set_default_value($entity, 'settings', 'gallery_display_template', ''); 
  24. $this->object->_set_default_value($entity, 'settings', 'ngg_triggers_display', 'never');