PHP Класс Sonata\ProductBundle\Entity\ProductCategoryManager

Наследование: extends Sonata\CoreBundle\Model\BaseEntityManager, implements Sonata\Component\Product\ProductCategoryManagerInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$categoryManager Sonata\ClassificationBundle\Model\CategoryManagerInterface

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

Метод Описание
addCategoryToProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CategoryInterface $category, $main = false )
getCategoryTree ( )
getProductCount ( Sonata\ClassificationBundle\Model\CategoryInterface $category, $limit = 1000 )
removeCategoryFromProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CategoryInterface $category )

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

Метод Описание
putInTree ( Sonata\ClassificationBundle\Model\CategoryInterface $category, array &$tree ) Finds $category place in $tree.

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

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

public addCategoryToProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CategoryInterface $category, $main = false )
$product Sonata\Component\Product\ProductInterface
$category Sonata\ClassificationBundle\Model\CategoryInterface

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

public getCategoryTree ( )

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

public getProductCount ( Sonata\ClassificationBundle\Model\CategoryInterface $category, $limit = 1000 )
$category Sonata\ClassificationBundle\Model\CategoryInterface

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

Finds $category place in $tree.
protected putInTree ( Sonata\ClassificationBundle\Model\CategoryInterface $category, array &$tree )
$category Sonata\ClassificationBundle\Model\CategoryInterface
$tree array

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

public removeCategoryFromProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CategoryInterface $category )
$product Sonata\Component\Product\ProductInterface
$category Sonata\ClassificationBundle\Model\CategoryInterface

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

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

protected CategoryManagerInterface,Sonata\ClassificationBundle\Model $categoryManager
Результат Sonata\ClassificationBundle\Model\CategoryManagerInterface