PHP Класс WellCommerce\Bundle\AdminBundle\Provider\AdminMenuProvider

Автор: Adam Piotrowski ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$adminMenuRepository WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface
$kernel Symfony\Component\HttpKernel\KernelInterface

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

Метод Описание
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface $repository ) AdminMenuProvider constructor.
getMenu ( )

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

Метод Описание
filterElements ( Doctrine\Common\Collections\Collection $collection, WellCommerce\Bundle\AdminBundle\Entity\AdminMenuInterface $parent = null ) : Doctrine\Common\Collections\Collection Filters the collection and returns only children elements for given parent element
generateMenu ( )
generateTree ( Doctrine\Common\Collections\Collection $collection, Doctrine\Common\Collections\Collection $children ) : array Generates a tree for given children elements
writeCache ( array $menu )

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

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

AdminMenuProvider constructor.
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface $repository )
$kernel Symfony\Component\HttpKernel\KernelInterface
$repository WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface

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

Filters the collection and returns only children elements for given parent element
protected filterElements ( Doctrine\Common\Collections\Collection $collection, WellCommerce\Bundle\AdminBundle\Entity\AdminMenuInterface $parent = null ) : Doctrine\Common\Collections\Collection
$collection Doctrine\Common\Collections\Collection
$parent WellCommerce\Bundle\AdminBundle\Entity\AdminMenuInterface
Результат Doctrine\Common\Collections\Collection

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

protected generateMenu ( )

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

Generates a tree for given children elements
protected generateTree ( Doctrine\Common\Collections\Collection $collection, Doctrine\Common\Collections\Collection $children ) : array
$collection Doctrine\Common\Collections\Collection
$children Doctrine\Common\Collections\Collection
Результат array

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

public getMenu ( )

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

protected writeCache ( array $menu )
$menu array

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

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

protected AdminMenuRepositoryInterface,WellCommerce\Bundle\AdminBundle\Repository $adminMenuRepository
Результат WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface

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

protected KernelInterface,Symfony\Component\HttpKernel $kernel
Результат Symfony\Component\HttpKernel\KernelInterface