\SlideshowImage
Slideshow Image is the holder for the images for the slideshow.
- Author: Simon `Sphere` StartGeneratedWithDataObjectAnnotator
Synopsis
class SlideshowImage
extends DataObject
{
- // methods
- public array fieldLabels()
- public void onAfterWrite()
- public void resizeImages()
- public void canCreate()
- public void canEdit()
- public void canDelete()
- public void canView()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
72+ | Update to SilverStripe Image methods for file-resizing. |
Members
private
- $db — array
- $has_one — array
Methods
public
- canCreate() — Permissions
- canDelete()
- canEdit()
- canView()
- fieldLabels() — Setup the Fields labels with the correct translation (if needed)
- onAfterWrite()
- resizeImages() — If there's a max-size set in the SiteConfig ({width}x{height}) for the image, resize the image.