SilverWare\FAQs\Pages\FAQPage
An extension of the page class for an FAQ page.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2018 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class FAQPage
extends Page
implements
ListSource
{
- // members
- private static string $singular_name = 'FAQ Page';
- private static string $plural_name = 'FAQ Pages';
- private static string $description = 'Holds a series of FAQs organised into categories';
- private static string $icon = 'silverware/faqs: admin/client/dist/images/icons/FAQPage.png';
- private static string $table_name = 'SilverWare_FAQPage';
- private static string $default_child = FAQCategory::class;
- private static array $db = ;
- private static array $defaults = ;
- private static array|string $allowed_children = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public DataList getAllCategories()
- public ArrayList getVisibleCategories()
- public DataList getFAQs()
- public DataList getListItems()
- public string getLinkMode()
- public string getNoDataMessage()
Hierarchy
Extends
- Page
Implements
- SilverWare\Lists\ListSource
Members
private
- $allowed_children
—
SilverWare\FAQs\Pages\array|string
Defines the allowed children for this object. - $db
—
array
Maps field names to field types for this object. - $default_child
—
string
Defines the default child class for this object. - $defaults
—
array
Defines the default values for the fields of this object. - $description
—
string
Description of this object. - $icon
—
string
Icon file 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.
Methods
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getAllCategories() — Answers all categories within the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getFAQs() — Answers a list of FAQs within the page.
- getLinkMode() — Answers the link mode for FAQs.
- getListItems() — Answers a list of FAQs within the receiver.
- getNoDataMessage() — Answers a message string to be shown when no data is available.
- getVisibleCategories() — Answers all visible categories within the receiver.