Source of file BarItem.php
Size: 2,467 Bytes - Last Modified: 2021-12-23T10:36:59+00:00
/var/www/docs.ssmods.com/process/src/src/Model/BarItem.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 | <?php /** * This file is part of SilverWare. * * PHP version >=5.6.0 * * For full copyright and license information, please view the * LICENSE.md file that was distributed with this source code. * * @package SilverWare\Navigation\Model * @author Colin Tucker <colin@praxis.net.au> * @copyright 2017 Praxis Interactive * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @link https://github.com/praxisnetau/silverware-navigation */ namespace SilverWare\Navigation\Model; use SilverWare\Model\Component; /** * An extension of the component object class for a navigation bar item. * * @package SilverWare\Navigation\Model * @author Colin Tucker <colin@praxis.net.au> * @copyright 2017 Praxis Interactive * @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @link https://github.com/praxisnetau/silverware-navigation */ class BarItem extends Component { /** * Human-readable singular name. * * @var string * @config */ private static $singular_name = 'Item'; /** * Human-readable plural name. * * @var string * @config */ private static $plural_name = 'Items'; /** * Description of this object. * * @var string * @config */ private static $description = 'A component which represents a navigation bar item'; /** * Icon file for this object. * * @var string * @config */ private static $icon = 'silverware/navigation: admin/client/dist/images/icons/BarItem.png'; /** * Defines the table name to use for this object. * * @var string * @config */ private static $table_name = 'SilverWare_Navigation_BarItem'; /** * Defines an ancestor class to hide from the admin interface. * * @var string * @config */ private static $hide_ancestor = Component::class; /** * Defines the allowed children for this object. * * @var array|string * @config */ private static $allowed_children = 'none'; /** * Renders the object for the HTML template. * * @param string $layout Page layout passed from template. * @param string $title Page title passed from template. * * @return DBHTMLText|string */ public function renderSelf($layout = null, $title = null) { return $this->renderWith(static::class); } } |