SilverWare\Portfolio\Pages\PortfolioProject
An extension of the page class for a portfolio project.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class PortfolioProject
extends Page
{
- // members
- private static string $singular_name = 'Portfolio Project';
- private static string $plural_name = 'Portfolio Projects';
- private static string $description = 'An individual project within a portfolio category';
- private static string $icon = 'silverware/portfolio: admin/client/dist/images/icons/PortfolioProject.png';
- private static string $table_name = 'SilverWare_PortfolioProject';
- private static boolean $can_be_root = false;
- private static array $db = ;
- private static array $defaults = ;
- private static array|string $allowed_children = ;
- private static array $extensions = ;
- private static array $detail_fields = ;
- private static string $default_completed_format = 'MMMM Y';
- private static string $meta_image_folder = 'Portfolio';
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public DBDatetime getMetaDate()
- public DataList getSlides()
- public boolean hasSlides()
- public CarouselComponent getCarousel()
- public boolean getCompletedShown()
- public string getCompletedFormatted()
- public string getDefaultCompletedFormat()
- public boolean getLinkShown()
- public string getProjectLink()
- public boolean hasProjectLink()
- public string getDetailFieldsHeadingText()
Hierarchy
Extends
- Page
Members
private
- $allowed_children
—
SilverWare\Portfolio\Pages\array|string
Defines the allowed children for this object. - $can_be_root
—
boolean
Determines whether this object can exist at the root level. - $db
—
array
Maps field names to field types for this object. - $default_completed_format
—
string
Defines the default format for the completed date. - $defaults
—
array
Defines the default values for the fields of this object. - $description
—
string
Description of this object. - $detail_fields
—
array
Defines the detail fields to show for the object. - $extensions
—
array
Defines the extension classes to apply to this object. - $icon
—
string
Icon file for this object. - $meta_image_folder
—
string
Defines the asset folder for uploading images. - $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.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getCarousel() — Answers a carousel component to render the slides for the template.
- getCompletedFormatted() — Answers the completed date of the receiver as a formatted string.
- getCompletedShown() — Answers true if the completed date is to be shown.
- getDefaultCompletedFormat() — Answers the default completed date format.
- getDetailFieldsHeadingText() — Answers the text for the detail fields heading.
- getLinkShown() — Answers true if the project link is to be shown.
- getMetaDate() — Answers the meta date for the receiver.
- getProjectLink() — Answers the link for the project.
- getSlides() — Answers a list of the slides for the project.
- hasProjectLink() — Answers true if the receiver has a project link.
- hasSlides() — Answers true if the project has at least one slide.