\RemoteImage
Class RemoteImage
Synopsis
class RemoteImage
extends DataObject
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $summary_fields = ;
- // methods
- public void getCMSFields()
- public string getThumbnail()
- public null|string getSummaryTag()
- public ArrayList getTag()
- public void onBeforeWrite()
- public mixed onBeforeDelete()
- public void canEdit()
- public void canDelete()
- public void canCreate()
- public void canView()
- public void providePermissions()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $db
- $has_one
- $many_many
- $summary_fields
Methods
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- getSummaryTag() — Used in the summary field of the gridview to show a list of tags
- getTag() — Used in the template to create filter categories
- getThumbnail() — Thumbnail for the summary gridview
- onBeforeDelete() — Delete the thumbnail when this dataobject is deleted
- onBeforeWrite() — 1. Fetch the image from the remote URL 2. Crop the image to 136x136 as per the frontend design 3. Create an image object and save the relationship to this object
- providePermissions()