\KBSlide
The slide model class that contains all fields and configuration related to individual slides.
Synopsis
class KBSlide
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $field_names = ;
- // methods
- public Image|String getGridThumbnail()
- public FieldList getCMSFields()
- public bool|string KBImage()
Hierarchy
Extends
- DataObject
Members
private
- $db
—
array
Add fields here to easily extend functionality of your slides. - $field_names
—
array
Description labels for the fields shown in the Page CMS GridField. - $has_one
—
array
KBSlideshow is an extension of Page, hence the has_one relation with Page rather than {@Link KBSlideshow}. - $summary_fields
—
array
Fields shown in the Page CMS GridField.
Methods
public
- KBImage() — Returns an url to the current slides image, cropped accordingly if defined.
- getCMSFields() — Creates the CMS interface for managing slides.
- getGridThumbnail() — Thumbnail function that falls back on a string indicating that an image doesn't exist.