\ConfigurablePage
ConfigurablePage is the page class for the module.
- Author: Mohamed Alsharaf <mohamed.alsharaf@gmail.com>
Synopsis
class ConfigurablePage
extends Page
{
- // members
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- private static array $has_one = ;
- private static string $singular_name = 'Configurable Page';
- private static string $plural_name = 'Configurable Pages';
- private static string $description = 'Create page with configurable fields';
- private static string $icon = 'configurablepage/images/icon.png';
- protected array $requiredFields = ;
- protected ManyManyList $editableFields;
- private static array $allowed_children = ;
- // methods
- public void getCMSFields()
- protected void buildManageFieldsTab()
- protected void buildPageFieldsTab()
- protected bool|FormField getFieldFromEditableField()
- public RequiredFields getCMSValidator()
- public void onAfterWrite()
- public string Content()
- public ManyManyList getEditableFields()
Hierarchy
Extends
- Page
Members
private
- $allowed_children
—
array
List of allowed child page types. - $description
- $has_one
- $icon
- $many_many
- $many_many_extraFields
- $plural_name
- $singular_name
protected
- $editableFields
—
ManyManyList
An instance of ManyManyList containing the current values from the configurable fields. - $requiredFields
—
array
An array of required field names.
Methods
protected
- buildManageFieldsTab() — Create tab to manage page fields.
- buildPageFieldsTab() — Create tab to edit fields values.
- getFieldFromEditableField() — Add an editable field to the fields tab.
public
- Content() — Format the page Content.
- getCMSFields() — (non-PHPdoc).
- getCMSValidator() — Set required fields.
- getEditableFields() — Get an array of all of the editable fields for the view template.
- onAfterWrite()