\GeneralPage
GeneralPage
Synopsis
class GeneralPage
extends Page
{
- // members
- private static string $singular_name = 'General page';
- private static string $plural_name = 'General pages';
- private static string $description = 'Generic content page';
- private static string $hide_ancestor = 'Page';
- // Inherited methods from Page
- public array providePermissions()
- public boolean canEdit()
- public boolean canDelete()
- public boolean canCreate()
Hierarchy
Extends
Members
private
- $description
—
string
Page type description for CMS - $hide_ancestor
—
string
If you extend a class, and don't want to be able to select the old class in the cms, set this to the old class name. - $plural_name
—
string
Plural name for CMS - $singular_name
—
string
Singular name for CMS
Methods
Inherited from Page
public
- canCreate() — DataObject create permissions
- canDelete() — DataObject delete permissions
- canEdit() — DataObject edit permissions
- providePermissions() — Return a map of permission codes to add to the dropdown shown in the Security section of the CMS