\CloudImageCached
Wraps Image_Cached. This one we have to be a little more careful with because we don't keep a database record.
NOTE: An Image_Cached can never actually be converted to
one of these because it's not in the db. It must be created
as this class (see CloudImage::getFormattedImage).
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class CloudImageCached
extends CloudImage
{
- // members
- protected CloudImageCachedStore $storeRecord;
- // methods
- public void __construct()
- public bool exists()
- public String getRelativePath()
- public false requireTable()
- public void write()
- public void delete()
- public $this setStoreRecord()
- public CloudImageCachedStore getStoreRecord()
- public void setCloudMetaJson()
- public void setCloudStatus()
- public void setCloudSize()
- // Inherited methods from CloudImage
- public void Link()
- public void RelativeLink()
- public void getURL()
- public void getAbsoluteURL()
- public void getAbsoluteSize()
- public void exists()
- public void onBeforeCloudPut()
- public int|string getDimensions()
- public CloudImageCached|null getFormattedImage()
- public bool isLocalValid()
- public int deleteFormattedImages()
Hierarchy
Extends
Members
protected
- $storeRecord — CloudImageCachedStore
Methods
public
- __construct() — Create a new cached image.
- delete() — Simulates a delete
- exists()
- getRelativePath()
- getStoreRecord()
- requireTable() — Prevent creating new tables for the cached record
- setCloudMetaJson()
- setCloudSize()
- setCloudStatus()
- setStoreRecord()
- write() — Prevent writing the cached image to the database, but write the store record instead
Inherited from CloudImage
public
- Link()
- RelativeLink()
- deleteFormattedImages()
- exists()
- getAbsoluteSize()
- getAbsoluteURL()
- getDimensions()
- getFormattedImage() — Return an image object representing the image in the given format.
- getURL()
- isLocalValid() — Checks if the local file is an image that can be used and not a placeholder or a corrupted file.
- onBeforeCloudPut() — Save the dimensions before we potentially wipe out the file