SilverWare\Portfolio\Pages\Portfolio
An extension of the page class for a portfolio.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class Portfolio
extends Page
implements
ListSource
{
- // members
- private static string $singular_name = 'Portfolio';
- private static string $plural_name = 'Portfolios';
- private static string $description = 'Holds a series of portfolio projects organised into categories';
- private static string $icon = 'silverware/portfolio: admin/client/dist/images/icons/Portfolio.png';
- private static string $table_name = 'SilverWare_Portfolio';
- private static string $default_child = PortfolioCategory::class;
- private static array $db = ;
- private static array $list_view_defaults = ;
- private static array|string $allowed_children = ;
- private static array $extensions = ;
- private static string $list_component_class = MasonryComponent::class;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public DataList getProjects()
- public DataList getListItems()
- public DataList getAllCategories()
- public ArrayList getVisibleCategories()
- public MasonryComponent getProjectList()
- public string getDetailsHeadingText()
- public string getNoDataMessage()
Hierarchy
Extends
- Page
Implements
- SilverWare\Lists\ListSource
Members
private
- $allowed_children
—
SilverWare\Portfolio\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. - $description
—
string
Description of this object. - $extensions
—
array
Defines the extension classes to apply to this object. - $icon
—
string
Icon file for this object. - $list_component_class
—
string
Defines the list component class to use. - $list_view_defaults
—
array
Defines the default values for the list view component. - $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.
- getDetailsHeadingText() — Answers the text for the details heading.
- getListItems() — Answers a list of projects within the receiver.
- getNoDataMessage() — Answers a message string to be shown when no data is available.
- getProjectList() — Answers the project list component for the template.
- getProjects() — Answers a list of projects within the portfolio.
- getVisibleCategories() — Answers all visible categories within the receiver.