45 "image_file" => String,
51 "related_resource" => String,
52 "published" => Boolean,
53 "include_in_slideshow" => Boolean,
54 "sort_order" => Number,
55 "image_type" => String,
56 "gallery_id" => Number,
74 $this->table =
"image";
75 $this->primary_key =
"image_id";
77 $this->default_format =
"{title}";
78 $this->pretty_class_name =
"Image";
80 $this->DataItem(func_get_args());
86 $text =
"<img src='$thumbnail' alt='".htmlSafe($this->
title).
"' border='0'";
89 $text .=
" width='$width'";
94 $text .=
" height='$height'";
115 if ($img ==
"blank" || $img ==
"")
117 $img =
"/fakoli/images/blank.gif";
121 $img =
"/action/image/show?image_id={$this->image_id}";
129 return endsWith($this->image_file,
".svg");
135 return $mgr->thumbnailLink($this->image_id,
$size, $iconize);
146 return $this->credits;
158 $owner = $this->
Owner();
160 return ($owner->user_id ==
$user->user_id) ?
true :
false;
The ImageManager class provides basic Image manipulation functions that are useful when working with ...
formatThumbnail($width=75, $height=0)
getThumbnail($size=0, $iconize=false)
static findByFileName($filename)
Provides the interface to the user model for the application.
$table column("Redirect From", "<a href='redirect_form?redirect_id={redirect_id}'>{redirect_from}</a>", true, "width: 30%") -> column("Redirect To", "<a href='{redirect_to}' target='_blank'>{redirect_to}</a>", true, "width: 30%") ->column("Last Modified", "{last_modified}", true, "width: 20%; text-align: center") ->column("Override", "{ override true
if(!Settings::getValue("debug", "enable_trace_file_downloads")) $filename