All Data Structures Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions
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

Definition at line 40 of file ImageFileModelUtil.php.

Member Function Documentation

static readImageFromCache (   $fileName,
  $shouldGetThumbnail = false 

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

$fileNameThe filename of image
bool$shouldGetThumbnailTrue 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:
Generated on Wed Apr 1 2020 07:10:57