A_NextGen_Basic_TagCloud_Mapper

Class A_NextGen_Basic_TagCloud_Mapper.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/package.module.nextgen_basic_tagcloud.php  
  1. class A_NextGen_Basic_TagCloud_Mapper extends Mixin 
  2. function set_defaults($entity) 
  3. $this->call_parent('set_defaults', $entity); 
  4. if (isset($entity->name) && $entity->name == NGG_BASIC_TAGCLOUD) { 
  5. if (isset($entity->display_settings) && is_array($entity->display_settings) && isset($entity->display_settings['display_type'])) { 
  6. if (!isset($entity->display_settings['gallery_display_type'])) { 
  7. $entity->display_settings['gallery_display_type'] = $entity->display_settings['display_type']; 
  8. unset($entity->display_settings['display_type']); 
  9. $this->object->_set_default_value($entity, 'settings', 'gallery_display_type', NGG_BASIC_THUMBNAILS); 
  10. $this->object->_set_default_value($entity, 'settings', 'number', 45); 
  11. $this->object->_set_default_value($entity, 'settings', 'ngg_triggers_display', 'never');