\Section
Creates a base object to be extended upon. This section is not usable by itself.
Synopsis
class Section
extends DataObject
implements
PermissionProvider
{
- // members
- private static string $title = "Section";
- private static string $description = "";
- private static string $singular_name = 'Section';
- private static string $plural_name = 'Sections';
- private static array $db = ;
- private static array $defaults = ;
- private static array $belongs_many_many = ;
- private static string $base_class = 'section';
- protected SectionController $controller;
- public static array $summary_fields = ;
- public static array $searchable_fields = ;
- // methods
- public FieldList getCMSFields()
- public array providePermissions()
- public boolean canView()
- public boolean canEdit()
- public boolean canDelete()
- public boolean canCreate()
- public void getConfigStyles()
- public static void Type()
- public string Anchor()
- public string AnchorAttr()
- public string Classes()
- public string ClassAttr()
- public void Render()
- public Controller getCurrentPage()
- public void Layout()
- public void getController()
- public void GridFieldRowClasses()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $base_class
- $belongs_many_many
—
array
Belongs_many_many relationship - $db
—
array
Database fields - $defaults
- $description
- $plural_name
—
string
Plural name for CMS - $singular_name
—
string
Singular name for CMS - $title
protected
- $controller — SectionController
public
-
$searchable_fields
Searchable Fields -
$summary_fields
Summary Fields
Methods
public
- Anchor() — Applies anchor to section in template.
- AnchorAttr() — Applies anchor to section in template.
- ClassAttr() — Applies classes to section in template.
- Classes() — Applies classes to section in template.
- GridFieldRowClasses()
- Layout()
- Render()
- Type()
- canCreate() — Creating Permissions
- canDelete() — Deleting Permissions
- canEdit() — Editing Permissions
- canView() — Viewing Permissions
- getCMSFields() — CMS Fields
- getConfigStyles()
- getController()
- getCurrentPage() — Access current page scope from section templates with $CurrentPage
- providePermissions() — Permissions