A_NextGen_Basic_Album

Provides validation for NextGen Basic Albums.

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 extends Mixin 
  2. public function validation() 
  3. $ngglegacy_albums = array(NGG_BASIC_COMPACT_ALBUM, NGG_BASIC_EXTENDED_ALBUM); 
  4. if (in_array($this->object->name, $ngglegacy_albums)) { 
  5. $this->object->validates_presence_of('gallery_display_type'); 
  6. $this->object->validates_numericality_of('galleries_per_page'); 
  7. return $this->call_parent('validation'); 
  8. public function get_order() 
  9. return NGG_DISPLAY_PRIORITY_BASE + NGG_DISPLAY_PRIORITY_STEP;