SilverWare\Legals\Pages\LegalPage
An extension of the page class for the abstract parent class of legal pages.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class LegalPage
extends Page
{
- // members
- private static string $singular_name = 'Legal Page';
- private static string $plural_name = 'Legal Pages';
- private static string $table_name = 'SilverWare_LegalPage';
- private static array $db = ;
- private static array $has_one = ;
- private static array $casting = ;
- private static array $extensions = ;
- private static array|string $token_mappings = ;
- private static array $list_item_details = ;
- private static array $contact_page_url_segments = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public DBHTMLText getMetaContent()
- public string getEntity()
- public string getContactLink()
- public string getProcessedContent()
- protected Page findContactPage()
Hierarchy
Extends
- Page
Members
private
- $casting
—
array
Maps field and method names to the class names of casting objects. - $contact_page_url_segments
—
array
Defines the URL segments used to locate the contact page. - $db
—
array
Maps field names to field types for this object. - $extensions
—
array
Defines the extension classes to apply to this object. - $has_one
—
array
Defines the has-one associations for this object. - $list_item_details
—
array
Defines the list item details to show for this object. - $plural_name
—
string
Human-readable plural name. - $singular_name
—
string
Human-readable singular name. - $table_name
—
string
Defines the table name to use for this object. - $token_mappings
—
SilverWare\Legals\Pages\array|string
Maps token names to properties and methods for this object.
Methods
protected
- findContactPage() — Attempts to locate and answer the contact page for the site.
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getContactLink() — Answers the link to the contact page.
- getEntity() — Answers the entity for the template.
- getMetaContent() — Answers the meta content for the receiver.
- getProcessedContent() — Answers the processed content for the template.