\ContentBlock
Models a Content Block - a base class for different types of Content Blocks
Synopsis
class ContentBlock
extends DataObject
{
- // members
- private static array $casting = ;
- private static array $db = ;
- private static array $has_one = ;
- private static string $default_sort = 'Sort ASC';
- // methods
- public void getCMSFields()
- public RequiredFields getCMSValidator()
- public void onBeforeWrite()
- public string getTemplateName()
- public string RenderBlock()
- public string getBlockType()
- public void canView()
- public void canEdit()
- public void canDelete()
- public void canCreate()
Hierarchy
Extends
- DataObject
Members
private
- $casting
- $db
- $default_sort
- $has_one
Methods
public
- RenderBlock() — Renders the block for template
- canCreate()
- canDelete()
- canEdit()
- canView()
- getBlockType() — Gets the block type for CMS display
- getCMSFields()
- getCMSValidator()
- getTemplateName()
- onBeforeWrite()