\CleanImagesExtension
Provides your SiteTree class with has_many images feature.
It uses CleanImages.
Add this extension to a SiteTree instance
by adding this to your _config.php:
Object::add_extension('Page', 'CleanImagesExtension');
- Author: arillo
Synopsis
class CleanImagesExtension
extends DataExtension
{
- // members
- private static array $has_many = ;
- // methods
- public void updateCMSFields()
- public DataList Images()
- public Image|boolean ImageAttachment()
- public DataList|boolean ImagesAttachment()
- public boolean MoreImagesThan()
Hierarchy
Extends
- DataExtension
Members
private
- $has_many
Methods
public
- ImageAttachment() — Getter for a specific image's attachment by $index.
- Images() — Getter for the attached images.
- ImagesAttachment() — Getter for a sortable range of images's attachments.
- MoreImagesThan() — Tests if the count of images is higher than $num.
- updateCMSFields()