nglasl\mediawesome\MediaPage
Displays customised media content relating to the respective media type.
@author Nathan Glasl <nathan@symbiote.com.au>
Synopsis
class MediaPage
extends Page
{
- // members
- private static string $table_name = 'MediaPage';
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $owns = ;
- private static array $defaults = ;
- private static array $searchable_fields = ;
- private static boolean $can_be_root = false;
- private static string $allowed_children = 'none';
- private static $default_parent = MediaHolder::class;
- private static string $description = 'Blog, Event, News, Publication <strong>or Custom Media</strong>';
- private static string $icon = 'nglasl/silverstripe-mediawesome: client/images/page.png';
- private static array $type_defaults = ;
- // methods
- public void requireDefaultRecords()
- public void getCMSFields()
- public void validate()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void Link()
- public void AbsoluteLink()
- public void MediaPageAttributes()
- public void getAttribute()
- public void Attribute()
Hierarchy
Extends
- Page
Members
private
- $allowed_children
- $can_be_root
- $db
- $default_parent
- $defaults
- $description
- $has_one
- $icon
- $many_many
- $owns
- $searchable_fields
- $table_name
-
$type_defaults
The default media types and their respective attributes.
Methods
public
- AbsoluteLink() — Determine the absolute URL by using the media holder's defined URL format.
- Attribute() — Retrieve a specific attribute for use in templates.
- Link() — Determine the URL by using the media holder's defined URL format.
- MediaPageAttributes() — Retrieve the versioned attribute join records, since these are what we're editing.
- getAttribute() — Retrieve a specific attribute for use in templates.
- getCMSFields()
- onAfterWrite()
- onBeforeWrite()
- requireDefaultRecords()
- validate() — Confirm that the current page is valid.