SilverWare\Navigation\Model\BarItem
An extension of the component object class for a navigation bar 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 BarItem
extends Component
{
- // members
- private static string $singular_name = 'Item';
- private static string $plural_name = 'Items';
- private static string $description = 'A component which represents a navigation bar item';
- private static string $icon = 'silverware/navigation: admin/client/dist/images/icons/BarItem.png';
- private static string $table_name = 'SilverWare_Navigation_BarItem';
- private static string $hide_ancestor = Component::class;
- private static array|string $allowed_children = 'none';
- // methods
- public DBHTMLText|string renderSelf()
Hierarchy
Extends
- SilverWare\Model\Component
Members
private
- $allowed_children
—
SilverWare\Navigation\Model\array|string
Defines the allowed children for this object. - $description
—
string
Description of this object. - $hide_ancestor
—
string
Defines an ancestor class to hide from the admin interface. - $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
- renderSelf() — Renders the object for the HTML template.