A_NextGen_Basic_Gallery_Validation

Class A_NextGen_Basic_Gallery_Validation.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_gallery/package.module.nextgen_basic_gallery.php  
  1. class A_NextGen_Basic_Gallery_Validation extends Mixin 
  2. function validation() 
  3. if ($this->object->name == NGG_BASIC_THUMBNAILS) { 
  4. $this->object->validates_presence_of('thumbnail_width'); 
  5. $this->object->validates_presence_of('thumbnail_height'); 
  6. $this->object->validates_numericality_of('thumbnail_width'); 
  7. $this->object->validates_numericality_of('thumbnail_height'); 
  8. $this->object->validates_numericality_of('images_per_page'); 
  9. } else { 
  10. if ($this->object->name == NGG_BASIC_SLIDESHOW) { 
  11. $this->object->validates_presence_of('gallery_width'); 
  12. $this->object->validates_presence_of('gallery_height'); 
  13. $this->object->validates_numericality_of('gallery_width'); 
  14. $this->object->validates_numericality_of('gallery_height'); 
  15. return $this->call_parent('validation');