mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
29 lines
649 B
PHP
29 lines
649 B
PHP
<?php
|
|
|
|
/**
|
|
* Class for adding a separator (horizontal line, not selectable) the output
|
|
* will automatically reduce several consecutive separators to just one
|
|
*
|
|
* @api
|
|
* @package UIExtensibilityAPI
|
|
* @since 2.0
|
|
*/
|
|
class SeparatorPopupMenuItem extends ApplicationPopupMenuItem
|
|
{
|
|
static $idx = 0;
|
|
|
|
/**
|
|
* Constructor
|
|
* @api
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct('_separator_' . (self::$idx++), '');
|
|
}
|
|
|
|
/** @ignore */
|
|
public function GetMenuItem()
|
|
{
|
|
return array('label' => '<hr class="menu-separator">', 'url' => '', 'css_classes' => $this->aCssClasses);
|
|
}
|
|
} |