PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
nextgen-gallery
/
src
/
DataTypes
<?php namespace Imagely\NGG\DataTypes; use Imagely\NGG\DataMapper\Model; use Imagely\NGG\DataMappers\Album as Mapper; use Imagely\NGG\DataMappers\Gallery as GalleryMapper; class Album extends Model { public $albumdesc; public $exclude; public $extras_post_id; public $id; public $id_field = 'id'; public $name; public $pageid; public $previewpic; public $slug; public $sortorder = []; public $date_created; public $date_modified; // Display type related properties public $display_type = 'photocrati-nextgen_basic_thumbnails'; public $display_type_settings = []; public function get_primary_key_column() { return 'id'; } public function get_mapper() { return Mapper::get_instance(); } /** * @param bool $models Unused * @return array * @TODO Remove $models attribute when Pro has reached the first stage of POPE removal compatibility */ public function get_galleries( $models = false ) { $mapper = GalleryMapper::get_instance(); $gallery_key = $mapper->get_primary_key_column(); return $mapper->find_all( [ "{$gallery_key} IN %s", $this->sortorder ] ); } public function validation() { $errors = array_merge( [], $this->validates_presence_of( 'name' ), $this->validates_numericality_of( 'previewpic' ) ); return empty( $errors ) ? true : $errors; } }
[-] Image.php
[edit]
[-] Lightbox.php
[edit]
[-] LegacyImage.php
[edit]
[-] DataMapperExtraFields.php
[edit]
[-] LegacyThumbnail.php
[edit]
[-] Album.php
[edit]
[-] Gallery.php
[edit]
[-] DisplayedGallery.php
[edit]
[-] LegacyImageCollection.php
[edit]
[-] DisplayType.php
[edit]
[+]
..