PHP 인터페이스 Sonata\Component\Product\ProductManagerInterface

상속: extends Sonata\CoreBundle\Model\ManagerInterface, extends Sonata\CoreBundle\Model\PageableManagerInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce 0 사용 예제들

공개 메소드들

메소드 설명
findEnabledFromIdAndSlug ( integer $id, string $slug ) : Sonata\Component\Product\ProductInterface | null Retrieve an active product from its id and its slug.
findInSameCollections ( mixed $productCollections ) : array Returns the products in the same collections as those specified in $productCollections.
findParentsInSameCollections ( mixed $productCollections ) : array Returns the parent products in the same collections as those specified in $productCollections.
findVariations ( Sonata\Component\Product\ProductInterface $product ) : array
updateStock ( Sonata\Component\Product\ProductInterface | integer $product, integer $diff ) Updated stock value for a given Product.

메소드 상세

findEnabledFromIdAndSlug() 공개 메소드

Retrieve an active product from its id and its slug.
public findEnabledFromIdAndSlug ( integer $id, string $slug ) : Sonata\Component\Product\ProductInterface | null
$id integer
$slug string
리턴 Sonata\Component\Product\ProductInterface | null

findInSameCollections() 공개 메소드

Returns the products in the same collections as those specified in $productCollections.
public findInSameCollections ( mixed $productCollections ) : array
$productCollections mixed
리턴 array

findParentsInSameCollections() 공개 메소드

Returns the parent products in the same collections as those specified in $productCollections.
public findParentsInSameCollections ( mixed $productCollections ) : array
$productCollections mixed
리턴 array

findVariations() 공개 메소드

public findVariations ( Sonata\Component\Product\ProductInterface $product ) : array
$product Sonata\Component\Product\ProductInterface
리턴 array

updateStock() 공개 메소드

Updated stock value for a given Product.
public updateStock ( Sonata\Component\Product\ProductInterface | integer $product, integer $diff )
$product Sonata\Component\Product\ProductInterface | integer
$diff integer