A_NextGen_Basic_SinglePic_Mapper

Class A_NextGen_Basic_SinglePic_Mapper.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_singlepic/package.module.nextgen_basic_singlepic.php  
  1. class A_NextGen_Basic_SinglePic_Mapper extends Mixin 
  2. /** 
  3. * Sets default values for SinglePic settings 
  4. * @param stdClass|C_DataMapper_Model $entity 
  5. */ 
  6. function set_defaults($entity) 
  7. $this->call_parent('set_defaults', $entity); 
  8. if (isset($entity->name) && $entity->name == NGG_BASIC_SINGLEPIC) { 
  9. $this->object->_set_default_value($entity, 'settings', 'width', ''); 
  10. $this->object->_set_default_value($entity, 'settings', 'height', ''); 
  11. $this->object->_set_default_value($entity, 'settings', 'mode', ''); 
  12. $this->object->_set_default_value($entity, 'settings', 'display_watermark', 0); 
  13. $this->object->_set_default_value($entity, 'settings', 'display_reflection', 0); 
  14. $this->object->_set_default_value($entity, 'settings', 'float', ''); 
  15. $this->object->_set_default_value($entity, 'settings', 'link', ''); 
  16. $this->object->_set_default_value($entity, 'settings', 'link_target', '_blank'); 
  17. $this->object->_set_default_value($entity, 'settings', 'quality', 100); 
  18. $this->object->_set_default_value($entity, 'settings', 'crop', 0); 
  19. $this->object->_set_default_value($entity, 'settings', 'template', ''); 
  20. // Part of the pro-modules 
  21. $this->object->_set_default_value($entity, 'settings', 'ngg_triggers_display', 'never');