Свойство | Type | Description | |
---|---|---|---|
$adminMenuRepository | WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
Méthode | Description | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface $repository ) | AdminMenuProvider constructor. | |
getMenu ( ) |
Méthode | Description | |
---|---|---|
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 ) |
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface $repository ) | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface | |
$repository | WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface |
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 | |
Résultat | Doctrine\Common\Collections\Collection |
protected generateTree ( Doctrine\Common\Collections\Collection $collection, Doctrine\Common\Collections\Collection $children ) : array | ||
$collection | Doctrine\Common\Collections\Collection | |
$children | Doctrine\Common\Collections\Collection | |
Résultat | array |
protected AdminMenuRepositoryInterface,WellCommerce\Bundle\AdminBundle\Repository $adminMenuRepository | ||
Résultat | WellCommerce\Bundle\AdminBundle\Repository\AdminMenuRepositoryInterface |