Свойство | Тип | Описание | |
---|---|---|---|
$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. |
public addCategoryToProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CategoryInterface $category, $main = false ) | ||
$product | Sonata\Component\Product\ProductInterface | |
$category | Sonata\ClassificationBundle\Model\CategoryInterface |
public getProductCount ( Sonata\ClassificationBundle\Model\CategoryInterface $category, $limit = 1000 ) | ||
$category | Sonata\ClassificationBundle\Model\CategoryInterface |
public removeCategoryFromProduct ( Sonata\Component\Product\ProductInterface $product, Sonata\ClassificationBundle\Model\CategoryInterface $category ) | ||
$product | Sonata\Component\Product\ProductInterface | |
$category | Sonata\ClassificationBundle\Model\CategoryInterface |