Inherits DataItem.
Definition at line 40 of file image.inc.
◆ findByFileName()
static ImageRecord::findByFileName |
( |
|
$filename | ) |
|
|
static |
Definition at line 102 of file image.inc.
if(!Settings::getValue("debug", "enable_trace_file_downloads")) $filename
◆ formatThumbnail()
ImageRecord::formatThumbnail |
( |
|
$width = 75 , |
|
|
|
$height = 0 |
|
) |
| |
Definition at line 83 of file image.inc.
86 $text =
"<img src='$thumbnail' alt='".htmlSafe($this->
title).
"' border='0'";
89 $text .=
" width='$width'";
94 $text .=
" height='$height'";
getThumbnail($size=0, $iconize=false)
◆ Gallery()
◆ getCaption()
ImageRecord::getCaption |
( |
| ) |
|
◆ getImage()
ImageRecord::getImage |
( |
| ) |
|
Definition at line 111 of file image.inc.
115 if ($img ==
"blank" || $img ==
"")
117 $img =
"/fakoli/images/blank.gif";
121 $img =
"/action/image/show?image_id={$this->image_id}";
◆ getShortCredit()
ImageRecord::getShortCredit |
( |
| ) |
|
Definition at line 143 of file image.inc.
146 return $this->credits;
◆ getThumbnail()
ImageRecord::getThumbnail |
( |
|
$size = 0 , |
|
|
|
$iconize = false |
|
) |
| |
Definition at line 132 of file image.inc.
135 return $mgr->thumbnailLink($this->image_id,
$size, $iconize);
The ImageManager class provides basic Image manipulation functions that are useful when working with ...
◆ ImageRecord()
ImageRecord::ImageRecord |
( |
| ) |
|
Definition at line 72 of file image.inc.
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());
◆ isOwner()
Definition at line 155 of file image.inc.
158 $owner = $this->
Owner();
160 return ($owner->user_id ==
$user->user_id) ?
true :
false;
$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
◆ isSVG()
Definition at line 127 of file image.inc.
129 return endsWith($this->image_file,
".svg");
◆ Owner()
Definition at line 149 of file image.inc.
Provides the interface to the user model for the application.
◆ $fields
Initial value:= array("image_id" => Number,
"title" => String,
"image_file" => String,
"ALT_tag" => String,
"date_taken" => Date,
"credits" => String,
"caption" => String,
"keywords" => String,
"related_resource" => String,
"published" => Boolean,
"include_in_slideshow" => Boolean,
"sort_order" => Number,
"image_type" => String,
"gallery_id" => Number,
"owner_id" => Number
)
Definition at line 43 of file image.inc.
◆ $relations
Initial value:= array(
"Owner" => "",
)
Definition at line 62 of file image.inc.
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/image/datamodel/image.inc