SilverWare\Gallery\Pages\Gallery
An extension of the page class for a gallery.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class Gallery
extends Page
implements
ListSource
{
- // members
- private static string $singular_name = 'Gallery';
- private static string $plural_name = 'Galleries';
- private static string $description = 'Holds a series of gallery images organised into albums';
- private static string $icon = 'silverware/gallery: admin/client/dist/images/icons/Gallery.png';
- private static string $table_name = 'SilverWare_Gallery';
- private static string $default_child = GalleryAlbum::class;
- private static array $db = ;
- private static array $defaults = ;
- private static array|string $allowed_children = ;
- private static array $extensions = ;
- private static string $list_component_class = MasonryComponent::class;
- private static array $list_view_defaults = ;
- private static string $asset_folder = 'Gallery';
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public string getMetaImageFolder()
- public string getFolderName()
- public DataList getAlbums()
- public DataList getImages()
- public DataList getListItems()
- public string getDefaultURLSegment()
Hierarchy
Extends
- Page
Implements
- SilverWare\Lists\ListSource
Members
private
- $allowed_children
—
SilverWare\Gallery\Pages\array|string
Defines the allowed children for this object. - $asset_folder
—
string
Defines the asset folder for uploading images. - $db
—
array
Maps field names to field types for this object. - $default_child
—
string
Defines the default child class for this object. - $defaults
—
array
Defines the default values for the fields of this object. - $description
—
string
Description of this object. - $extensions
—
array
Defines the extension classes to apply to this object. - $icon
—
string
Icon file for this object. - $list_component_class
—
string
Defines the list component class to use. - $list_view_defaults
—
array
Defines the default values for the list view component. - $plural_name
—
string
Human-readable plural name. - $singular_name
—
string
Human-readable singular name. - $table_name
—
string
Defines the table name to use for this object.
Methods
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getAlbums() — Answers a list of albums within the gallery.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getDefaultURLSegment() — Answers the default URL segment for the receiver.
- getFolderName() — Answers the asset folder name for the receiver.
- getImages() — Answers a list of images within the gallery.
- getListItems() — Answers a list of images within the receiver.
- getMetaImageFolder() — Answers the name of the asset folder used for uploading images.