PHP Класс Elcodi\Admin\PluginBundle\Builder\PluginMenuBuilder

Наследование: implements Elcodi\Component\Menu\Builder\Interfaces\MenuBuilderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$enabledPlugins Elcodi\Component\Plugin\Entity\Plugin[] Plugins configuration
$menuNodeFactory Elcodi\Component\Menu\Factory\NodeFactory Menu node factory

Открытые методы

Метод Описание
__construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, array $enabledPlugins ) Constructor
build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu ) Build the menu

Защищенные методы

Метод Описание
filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[] Return only visible plugins

Приватные методы

Метод Описание
buildByPluginCategory ( Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $parentNode, array $plugins, string $pluginCategory ) Build by category and place all menu entries inside a family

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, array $enabledPlugins )
$menuNodeFactory Elcodi\Component\Menu\Factory\NodeFactory Menu node factory
$enabledPlugins array Enabled Plugins

build() публичный Метод

Build the menu
public build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu )
$menu Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface Menu

filterVisiblePlugins() защищенный Метод

Return only visible plugins
protected filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[]
Результат Elcodi\Component\Plugin\Entity\Plugin[] Visible plugins

Описание свойств

$enabledPlugins защищенное свойство

Plugins configuration
protected Plugin[],Elcodi\Component\Plugin\Entity $enabledPlugins
Результат Elcodi\Component\Plugin\Entity\Plugin[]

$menuNodeFactory защищенное свойство

Menu node factory
protected NodeFactory,Elcodi\Component\Menu\Factory $menuNodeFactory
Результат Elcodi\Component\Menu\Factory\NodeFactory