PHP 클래스 Sonata\ProductBundle\Entity\ProductCategoryManager

상속: extends Sonata\CoreBundle\Model\BaseEntityManager, implements Sonata\Component\Product\ProductCategoryManagerInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

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