\SecureImage_Cached
A resized / processed {@link Image} object.
When Image object are processed or resized, a suitable Image_Cached object is returned, pointing to the
cached copy of the processed image.
Synopsis
class SecureImage_Cached
extends SecureImage
{
- // Inherited members from SecureImage
- protected array $attributes;
- // methods
- public void __construct()
- public bool exists()
- public void getRelativePath()
- public void requireTable()
- public void write()
- // Inherited methods from SecureImage
- public static void flush()
- public void setAttribute()
- public string getAttribute()
- public array getAttributes()
- public string getAttributesHTML()
- public string getTag()
- public SecureImage_Cached getFormattedImage()
- public string cacheFilename()
Hierarchy
Extends
Members
protected
- $attributes — array
Methods
public
- __construct() — Create a new cached image.
- exists() — Override the parent's exists method becuase the ID is explicitly set to -1 on a cached image we can't use the default check
- getRelativePath()
- requireTable()
- write() — Prevent writing the cached image to the database
Inherited from SecureImage
public
- cacheFilename() — Return the filename for the cached image, given it's format name and arguments.
- flush() — Triggered early in the request when someone requests a flush.
- getAttribute() — Get an HTML attribute defined by the field, or added through {@link setAttribute()}.
- getAttributes()
- getAttributesHTML()
- getFormattedImage() — Return an image object representing the image in the given format.
- getTag() — Return an XHTML img tag for this Image, or NULL if the image file doesn't exist on the filesystem.
- setAttribute() — Set an HTML attribute on the field element, mostly an <input> tag.