SilverWare\Navigation\Items\TextItem
An extension of the bar item class for a text 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 TextItem
extends BarItem
{
- // members
- private static string $singular_name = 'Text Item';
- private static string $plural_name = 'Text Items';
- private static string $description = 'A bar item to show a string of text';
- private static string $table_name = 'SilverWare_Navigation_TextItem';
- private static string $hide_ancestor = BarItem::class;
- private static array $extensions = ;
- // methods
- public FieldList getCMSFields()
- public array getClassNames()
- // Inherited methods from BarItem
- public DBHTMLText|string renderSelf()
Hierarchy
Members
private
- $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
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getClassNames() — Answers an array of class names for the HTML template.
Inherited from SilverWare\Navigation\Model\BarItem
public
- renderSelf() — Renders the object for the HTML template.