43 var
$fields = array(
"gallery_id" => Number,
44 "gallery_name" => String,
45 "identifier" => String,
46 "description" => HTML,
48 "thumbnail_size" => Number,
49 "thumbnail_format" => String,
50 "image_link_mode" => String,
51 "fix_orientation" => Boolean,
52 "randomize_filenames" => Boolean,
55 "read_access" => String,
56 "write_access" => String,
57 "published" => Boolean,
58 "last_modified" => Timestamp);
66 "Thumbnail" =>
"Link from Thumbnail",
67 "Lightbox" =>
"Link from Lightbox");
86 return $this->
Owner()->getFullName();
91 return ($this->thumbnail_format) ? $this->thumbnail_format :
Settings::getValue(
"image",
"thumbnail_format");
112 return $config[
'uploadbase'] . DIRECTORY_SEPARATOR .
"gallery_{$this->gallery_id}";
117 $match = Query::create(
ImageGallery,
"WHERE identifier=:id")
126 $this->primary_key =
"gallery_id";
127 $this->table =
"image_gallery";
131 $this->relations[
"Owner"] =
$mgr->getUserClass();
133 $this->default_format =
"{gallery_name}";
135 $this->DataItem(func_get_args());
countImages($constraint="")
static findByIdentifier($identifier)
static getValue($component, $name)
Retrieve the value of the specified Setting.
Provides the interface to the user model for the application.