NSWDPC\Elemental\Models\QuickGallery\ElementQuickGallery
ElementQuickGallery adds a gallery via a sortable upload field All images can be added in one go!
Synopsis
class ElementQuickGallery
extends ElementContent
{
- // members
- private static string $icon = 'font-icon-thumbnails';
- private static string $table_name = 'ElementQuickGallery';
- private static string $title = 'Quick Gallery';
- private static string $description = "Display one or more images";
- private static string $singular_name = 'Quick gallery';
- private static string $plural_name = 'Quick galleries';
- private static boolean $inline_editable = false;
- private static $controller_class = ElementQuickGalleryController::class;
- private static array $db = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- private static array $owns = ;
- private static array $allowed_file_types = ;
- private static integer $default_thumb_width = 375;
- private static integer $default_thumb_height = 282;
- // methods
- public void getType()
- public void getThumbWidth()
- public void getThumbHeight()
- public void getAllowedFileTypes()
- public void onBeforeWrite()
- public void getCMSFields()
- public void SortedImages()
Hierarchy
Extends
- DNADesign\Elemental\Models\ElementContent
Members
private
- $allowed_file_types
- $controller_class
- $db
- $default_thumb_height — int
- $default_thumb_width — int
- $description
- $icon
- $inline_editable
- $many_many
- $many_many_extraFields
- $owns
- $plural_name
- $singular_name
- $table_name
—
string
Defines the database table name - $title
Methods
public
- SortedImages() — Return images in sorted order
- getAllowedFileTypes()
- getCMSFields()
- getThumbHeight() — Return the generated thumbnail height, use in templates if you want to rely on the configured default height value
- getThumbWidth() — Return the generated thumbnail width, use in templates if you want to rely on the configured default width value
- getType()
- onBeforeWrite() — Ensure a sane dimension is set