nglasl\mediawesome\MediaAttribute
This is a CMS attribute for a media type.
@author Nathan Glasl <nathan@symbiote.com.au>
Synopsis
class MediaAttribute
extends DataObject
{
- // members
- private static string $table_name = 'MediaAttribute';
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- // methods
- public void canView()
- public void canEdit()
- public void canCreate()
- public void canDelete()
- public void checkPermissions()
- public void getCMSFields()
- public void validate()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void onAfterDelete()
- public void getTemplateClass()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $belongs_many_many
- $db
- $has_one
- $table_name
Methods
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- checkPermissions() — Determine access for the current CMS user from the site configuration permissions.
- getCMSFields()
- getTemplateClass() — Retrieve a class name of the current attribute for use in templates.
- onAfterDelete()
- onAfterWrite()
- onBeforeWrite()
- validate() — Confirm that the current attribute is valid.