\RetinaImage_Cached
Synopsis
class RetinaImage_Cached
extends RetinaImage
{
- // Inherited members from RetinaImage
- protected array $adaptiveimages;
- public static boolean $forceretina;
- // methods
- public void __construct()
- public void getRelativePath()
- public false requireTable()
- public void write()
- public string getTag()
- // Inherited methods from RetinaImage
- public string getTag()
- public RetinaImage getThumbnail()
- public boolean isWidth()
- public string insertFilenameAppender()
- public static string removeFilenameAppender()
- public RetinaImage_Cached getFormattedImage()
- public void generateFormattedImage()
Hierarchy
Extends
Members
protected
- $adaptiveimages
public
- $forceretina
Methods
public
- __construct() — Create a new cached image.
- getRelativePath()
- getTag() — Return an XHTML img tag for this Image, or NULL if the image file doesn't exist on the filesystem.
- requireTable() — Prevent creating new tables for the cached record
- write() — Prevent writing the cached image to the database
Inherited from RetinaImage
public
- generateFormattedImage() — iterative version of Image::generateFormattedImage
- getFormattedImage() — similar to as Image::getFormattedImage, but uses create() function
- getTag() — Generates the image if not already there.
- getThumbnail()
- insertFilenameAppender() — returns the file name with extra text appended i.e. image.jpg -> image-1x.jpg
- isWidth() — we check if the file exists on getFormattedImage(). May incur a performance hit, but during testing it seems O.K.
- removeFilenameAppender() — removes the appendation from the name