ilateral\SilverStripe\Carousel\Model\CarouselSlide
Representation of a slide object that can be extended to add extra data (such as links, additional content, etc)
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class CarouselSlide
extends DataObject
{
- // members
- private static string $table_name = 'CarouselSlide';
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static string $default_sort = "Sort ASC";
- private static string $default_proile = 'ShortCarousel';
- // methods
- public HTMLText getRenderedImage()
- public void getCMSFields()
- public void getThumbnail()
- public Boolean canView()
- public Boolean canCreate()
- public Boolean canEdit()
- public Boolean canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $casting
—
array
Default casting for functions to templates - $db
—
array
DB Columns - $default_proile
—
string
Default image profile to use - $default_sort
—
string
Default sorting of this object - $has_one
—
array
Has One relations - $owns
—
array
Ownership of relations - $summary_fields
—
array
Summary columns/fields for this object - $table_name
Methods
public
- canCreate() — Anyone can create a carousel slide
- canDelete() — Check parent permissions
- canEdit() — Check parent permissions
- canView() — Check parent permissions
- getCMSFields()
- getRenderedImage() — Get fully rendered image for template
- getThumbnail()