NZTA\Gallery\Extensions\GalleryExtension
Synopsis
class GalleryExtension
extends DataExtension
{
- // members
- private static integer $thumbnail_caption_length = 35;
- private static array $db = ;
- private static array $has_many = ;
- private static array $pages_allowed_gallery = ;
- // methods
- public void updateCMSFields()
- public string getGalleryData()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db — array
- $has_many — array
- $pages_allowed_gallery
—
array
Defines the PageTypes that can have a Gallery, note these can be defined in the configurations/yml file
Methods
public
- getGalleryData() — Helper to get all the gallery data as JSON so a front end JS application can generate the gallery with a lightbox feature.
- updateCMSFields()