PHP 클래스 Elcodi\Admin\PluginBundle\Builder\PluginMenuBuilder

상속: implements Elcodi\Component\Menu\Builder\Interfaces\MenuBuilderInterface
파일 보기 프로젝트 열기: elcodi/bamboo

보호된 프로퍼티들

프로퍼티 타입 설명
$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