SilverWare\Navigation\Items\LinksItem
An extension of the bar item class for a links item.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class LinksItem
extends BarItem
{
- // members
- private static string $singular_name = 'Links Item';
- private static string $plural_name = 'Links Items';
- private static string $description = 'A bar item to show a series of links';
- private static string $table_name = 'SilverWare_Navigation_LinksItem';
- private static string $hide_ancestor = BarItem::class;
- private static string $default_child = Link::class;
- private static array $db = ;
- private static array $defaults = ;
- private static array|string $allowed_children = ;
- private static array $extensions = ;
- private static string $apply_styles = 'none';
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public array getWrapperClassNames()
- public array getListClassNames()
- public string getCustomCSSPrefix()
- public DataList getLinks()
- public ArrayList getEnabledLinks()
- // Inherited methods from BarItem
- public DBHTMLText|string renderSelf()
Hierarchy
Members
private
- $allowed_children
—
SilverWare\Navigation\Items\array|string
Defines the allowed children for this object. - $apply_styles
—
array
Defines the style extension classes to apply to 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. - $extensions
—
array
Defines the extension classes to apply to this object. - $hide_ancestor
—
string
Defines an ancestor class to hide from the admin interface. - $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.
- getCustomCSSPrefix() — Answers the CSS prefix used for the custom CSS template.
- getEnabledLinks() — Answers a list of the enabled links within the receiver.
- getLinks() — Answers a list of all links within the receiver.
- getListClassNames() — Answers an array of list class names for the HTML template.
- getWrapperClassNames() — Answers an array of wrapper class names for the HTML template.
Inherited from SilverWare\Navigation\Model\BarItem
public
- renderSelf() — Renders the object for the HTML template.