ImageFileModelUtil Class Reference

Static Public Member Functions

static readImageFromCache ($fileName, $shouldGetThumbnail=false)
static getUrlForActionUpload ()
static getUrlForActionGetUploaded ()
static getUrlForGetImageFromImageFileName ($fileName, $shouldReturnForThumbnail=false)
static getImageSummary (ImageFileModel $imageFileModel, $layout=null)
static getLink ($linkText, $class, $type)
static getImageFileNameWithDimensions ($imageFileName, $width, $height)
static getImageFromHtmlImgTag ($htmlContent)
static saveImageFromTemporaryFile ($tempFilePath, $name)
static importFromUrl ($url)

Static Protected Member Functions

static resolveWidthAndHeightAttributesIfTheyAreMissing (ImageFileModel $imageFileModel)
static getEditLink ()
static getSelectLink ()
static resolveInsertLink ($imageFileModel)
static getDefaultLayout ()
static resolveImageName (&$name, $mimeType)

Detailed Description

Helper class to deal with

See also:
ImageFileModel

Definition at line 40 of file ImageFileModelUtil.php.


Member Function Documentation

static readImageFromCache ( fileName,
shouldGetThumbnail = false 
) [static]

Reads image or thumb if it exists on cache. If it don't exists cache it from the ImageFileModel first

Parameters:
$fileName The filename of image
bool $shouldGetThumbnail True if we want the thumbnail of the image

Definition at line 48 of file ImageFileModelUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Aug 18 07:10:55 2019