PHP 클래스 Sonata\ProductBundle\Entity\BaseProduct

상속: implements Sonata\Component\Product\ProductInterface
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$createdAt DateTime
$deliveries Doctrine\Common\Collections\ArrayCollection
$description string
$descriptionFormatter string
$enabled boolean
$enabledVariations Doctrine\Common\Collections\ArrayCollection
$gallery Sonata\MediaBundle\Model\GalleryInterface
$image Sonata\MediaBundle\Model\MediaInterface
$name string
$options array
$packages Doctrine\Common\Collections\ArrayCollection
$parent Sonata\Component\Product\ProductInterface
$price float
$priceIncludingVat boolean
$productCategories Doctrine\Common\Collections\ArrayCollection
$productCollections Doctrine\Common\Collections\ArrayCollection
$rawDescription string
$rawShortDescription string
$shortDescription string
$shortDescriptionFormatter string
$sku string
$slug string
$stock integer
$updatedAt DateTime
$variations Doctrine\Common\Collections\ArrayCollection
$vatRate float

공개 메소드들

메소드 설명
__construct ( ) Constructor.
__toString ( )
addDeliverie ( Sonata\Component\Product\DeliveryInterface $delivery )
addDelivery ( Sonata\Component\Product\DeliveryInterface $delivery )
addPackage ( Sonata\Component\Product\PackageInterface $package )
addProductCategorie ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
addProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
addProductCollection ( Sonata\Component\Product\ProductCollectionInterface $productCollection )
addVariation ( Sonata\Component\Product\ProductInterface $variation )
fromArray ( $array )
getCategories ( )
getCollections ( )
getCreatedAt ( )
getDeliveries ( )
getDescription ( )
getDescriptionFormatter ( )
getEnabled ( )
getGallery ( )
getImage ( )
getMainCategory ( )
getName ( )
getOptions ( )
getPackages ( )
getParent ( )
getPrice ( $vat = false )
getProductCategories ( )
getProductCollections ( )
getQuantity ( )
getRawDescription ( )
getRawShortDescription ( )
getShortDescription ( )
getShortDescriptionFormatter ( )
getSku ( )
getSlug ( )
getStock ( )
getUnitPrice ( $vat = false )
getUpdatedAt ( )
getVariations ( )
getVatRate ( )
hasOneMainCategory ( )
hasVariations ( )
isEnabled ( )
isMaster ( )
isPriceIncludingVat ( )
isRecurrentPayment ( )
isSalable ( )
isVariation ( )
prePersist ( )
preUpdate ( )
removeDeliverie ( Sonata\Component\Product\DeliveryInterface $delivery )
removeDelivery ( Sonata\Component\Product\DeliveryInterface $delivery )
removePackage ( Sonata\Component\Product\PackageInterface $package )
removeProductCategorie ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
removeProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
removeProductCollection ( Sonata\Component\Product\ProductCollectionInterface $productCollection )
removeVariation ( Sonata\Component\Product\ProductInterface $variation )
setCreatedAt ( DateTime $createdAt = null )
setDeliveries ( ArrayCollection $deliveries )
setDescription ( $description )
setDescriptionFormatter ( $descriptionFormatter )
setEnabled ( $enabled )
setGallery ( Sonata\MediaBundle\Model\GalleryInterface $gallery = null )
setImage ( Sonata\MediaBundle\Model\MediaInterface $image = null )
setName ( $name )
setOptions ( array $options )
setPackages ( ArrayCollection $packages )
setParent ( Sonata\Component\Product\ProductInterface $parent )
setPrice ( $price )
setPriceIncludingVat ( $priceIncludingVat )
setProductCategories ( ArrayCollection $productCategories )
setProductCollections ( ArrayCollection $productCollections )
setQuantity ( $quantity )
setRawDescription ( $rawDescription )
setRawShortDescription ( $rawShortDescription )
setShortDescription ( $shortDescription )
setShortDescriptionFormatter ( $shortDescriptionFormatter )
setSku ( $sku )
setSlug ( $slug )
setStock ( $stock )
setUnitPrice ( $unitPrice )
setUpdatedAt ( DateTime $updatedAt = null )
setVariations ( ArrayCollection $variations )
setVatRate ( $vatRate )
slugify ( $text ) : mixed | string source : http://snipplr.com/view/22741/slugify-a-string-in-php/.
toArray ( )
validateOneMainCategory ( Symfony\Component\Validator\ExecutionContextInterface $context )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

__toString() 공개 메소드

public __toString ( )

addDeliverie() 공개 메소드

public addDeliverie ( Sonata\Component\Product\DeliveryInterface $delivery )
$delivery Sonata\Component\Product\DeliveryInterface

addDelivery() 공개 메소드

public addDelivery ( Sonata\Component\Product\DeliveryInterface $delivery )
$delivery Sonata\Component\Product\DeliveryInterface

addPackage() 공개 메소드

public addPackage ( Sonata\Component\Product\PackageInterface $package )
$package Sonata\Component\Product\PackageInterface

addProductCategorie() 공개 메소드

public addProductCategorie ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
$productCategory Sonata\Component\Product\ProductCategoryInterface

addProductCategory() 공개 메소드

public addProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
$productCategory Sonata\Component\Product\ProductCategoryInterface

addProductCollection() 공개 메소드

public addProductCollection ( Sonata\Component\Product\ProductCollectionInterface $productCollection )
$productCollection Sonata\Component\Product\ProductCollectionInterface

addVariation() 공개 메소드

public addVariation ( Sonata\Component\Product\ProductInterface $variation )
$variation Sonata\Component\Product\ProductInterface

fromArray() 공개 메소드

public fromArray ( $array )

getCategories() 공개 메소드

public getCategories ( )

getCollections() 공개 메소드

public getCollections ( )

getCreatedAt() 공개 메소드

public getCreatedAt ( )

getDeliveries() 공개 메소드

public getDeliveries ( )

getDescription() 공개 메소드

public getDescription ( )

getDescriptionFormatter() 공개 메소드

getEnabled() 공개 메소드

public getEnabled ( )

getGallery() 공개 메소드

public getGallery ( )

getImage() 공개 메소드

public getImage ( )

getMainCategory() 공개 메소드

public getMainCategory ( )

getName() 공개 메소드

public getName ( )

getOptions() 공개 메소드

public getOptions ( )

getPackages() 공개 메소드

public getPackages ( )

getParent() 공개 메소드

public getParent ( )

getPrice() 공개 메소드

public getPrice ( $vat = false )

getProductCategories() 공개 메소드

getProductCollections() 공개 메소드

getQuantity() 공개 메소드

public getQuantity ( )

getRawDescription() 공개 메소드

public getRawDescription ( )

getRawShortDescription() 공개 메소드

getShortDescription() 공개 메소드

public getShortDescription ( )

getShortDescriptionFormatter() 공개 메소드

getSku() 공개 메소드

public getSku ( )

getSlug() 공개 메소드

public getSlug ( )

getStock() 공개 메소드

public getStock ( )

getUnitPrice() 공개 메소드

public getUnitPrice ( $vat = false )

getUpdatedAt() 공개 메소드

public getUpdatedAt ( )

getVariations() 공개 메소드

public getVariations ( )

getVatRate() 공개 메소드

public getVatRate ( )

hasOneMainCategory() 공개 메소드

public hasOneMainCategory ( )

hasVariations() 공개 메소드

public hasVariations ( )

isEnabled() 공개 메소드

public isEnabled ( )

isMaster() 공개 메소드

public isMaster ( )

isPriceIncludingVat() 공개 메소드

public isPriceIncludingVat ( )

isRecurrentPayment() 공개 메소드

public isRecurrentPayment ( )

isSalable() 공개 메소드

public isSalable ( )

isVariation() 공개 메소드

public isVariation ( )

prePersist() 공개 메소드

public prePersist ( )

preUpdate() 공개 메소드

public preUpdate ( )

removeDeliverie() 공개 메소드

public removeDeliverie ( Sonata\Component\Product\DeliveryInterface $delivery )
$delivery Sonata\Component\Product\DeliveryInterface

removeDelivery() 공개 메소드

public removeDelivery ( Sonata\Component\Product\DeliveryInterface $delivery )
$delivery Sonata\Component\Product\DeliveryInterface

removePackage() 공개 메소드

public removePackage ( Sonata\Component\Product\PackageInterface $package )
$package Sonata\Component\Product\PackageInterface

removeProductCategorie() 공개 메소드

public removeProductCategorie ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
$productCategory Sonata\Component\Product\ProductCategoryInterface

removeProductCategory() 공개 메소드

public removeProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory )
$productCategory Sonata\Component\Product\ProductCategoryInterface

removeProductCollection() 공개 메소드

public removeProductCollection ( Sonata\Component\Product\ProductCollectionInterface $productCollection )
$productCollection Sonata\Component\Product\ProductCollectionInterface

removeVariation() 공개 메소드

public removeVariation ( Sonata\Component\Product\ProductInterface $variation )
$variation Sonata\Component\Product\ProductInterface

setCreatedAt() 공개 메소드

public setCreatedAt ( DateTime $createdAt = null )
$createdAt DateTime

setDeliveries() 공개 메소드

public setDeliveries ( ArrayCollection $deliveries )
$deliveries Doctrine\Common\Collections\ArrayCollection

setDescription() 공개 메소드

public setDescription ( $description )

setDescriptionFormatter() 공개 메소드

public setDescriptionFormatter ( $descriptionFormatter )

setEnabled() 공개 메소드

public setEnabled ( $enabled )

setGallery() 공개 메소드

public setGallery ( Sonata\MediaBundle\Model\GalleryInterface $gallery = null )
$gallery Sonata\MediaBundle\Model\GalleryInterface

setImage() 공개 메소드

public setImage ( Sonata\MediaBundle\Model\MediaInterface $image = null )
$image Sonata\MediaBundle\Model\MediaInterface

setName() 공개 메소드

public setName ( $name )

setOptions() 공개 메소드

public setOptions ( array $options )
$options array

setPackages() 공개 메소드

public setPackages ( ArrayCollection $packages )
$packages Doctrine\Common\Collections\ArrayCollection

setParent() 공개 메소드

public setParent ( Sonata\Component\Product\ProductInterface $parent )
$parent Sonata\Component\Product\ProductInterface

setPrice() 공개 메소드

public setPrice ( $price )

setPriceIncludingVat() 공개 메소드

public setPriceIncludingVat ( $priceIncludingVat )

setProductCategories() 공개 메소드

public setProductCategories ( ArrayCollection $productCategories )
$productCategories Doctrine\Common\Collections\ArrayCollection

setProductCollections() 공개 메소드

public setProductCollections ( ArrayCollection $productCollections )
$productCollections Doctrine\Common\Collections\ArrayCollection

setQuantity() 공개 메소드

public setQuantity ( $quantity )

setRawDescription() 공개 메소드

public setRawDescription ( $rawDescription )

setRawShortDescription() 공개 메소드

public setRawShortDescription ( $rawShortDescription )

setShortDescription() 공개 메소드

public setShortDescription ( $shortDescription )

setShortDescriptionFormatter() 공개 메소드

public setShortDescriptionFormatter ( $shortDescriptionFormatter )

setSku() 공개 메소드

public setSku ( $sku )

setSlug() 공개 메소드

public setSlug ( $slug )

setStock() 공개 메소드

public setStock ( $stock )

setUnitPrice() 공개 메소드

public setUnitPrice ( $unitPrice )

setUpdatedAt() 공개 메소드

public setUpdatedAt ( DateTime $updatedAt = null )
$updatedAt DateTime

setVariations() 공개 메소드

public setVariations ( ArrayCollection $variations )
$variations Doctrine\Common\Collections\ArrayCollection

setVatRate() 공개 메소드

public setVatRate ( $vatRate )

slugify() 공개 정적인 메소드

source : http://snipplr.com/view/22741/slugify-a-string-in-php/.
public static slugify ( $text ) : mixed | string
$text
리턴 mixed | string

toArray() 공개 메소드

public toArray ( )

validateOneMainCategory() 공개 메소드

public validateOneMainCategory ( Symfony\Component\Validator\ExecutionContextInterface $context )
$context Symfony\Component\Validator\ExecutionContextInterface

프로퍼티 상세

$createdAt 보호되어 있는 프로퍼티

protected DateTime $createdAt
리턴 DateTime

$deliveries 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $deliveries
리턴 Doctrine\Common\Collections\ArrayCollection

$description 보호되어 있는 프로퍼티

protected string $description
리턴 string

$descriptionFormatter 보호되어 있는 프로퍼티

protected string $descriptionFormatter
리턴 string

$enabled 보호되어 있는 프로퍼티

protected bool $enabled
리턴 boolean

$enabledVariations 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $enabledVariations
리턴 Doctrine\Common\Collections\ArrayCollection

$image 보호되어 있는 프로퍼티

protected MediaInterface,Sonata\MediaBundle\Model $image
리턴 Sonata\MediaBundle\Model\MediaInterface

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$options 보호되어 있는 프로퍼티

protected array $options
리턴 array

$packages 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $packages
리턴 Doctrine\Common\Collections\ArrayCollection

$parent 보호되어 있는 프로퍼티

protected ProductInterface,Sonata\Component\Product $parent
리턴 Sonata\Component\Product\ProductInterface

$price 보호되어 있는 프로퍼티

protected float $price
리턴 float

$priceIncludingVat 보호되어 있는 프로퍼티

protected bool $priceIncludingVat
리턴 boolean

$productCategories 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $productCategories
리턴 Doctrine\Common\Collections\ArrayCollection

$productCollections 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $productCollections
리턴 Doctrine\Common\Collections\ArrayCollection

$rawDescription 보호되어 있는 프로퍼티

protected string $rawDescription
리턴 string

$rawShortDescription 보호되어 있는 프로퍼티

protected string $rawShortDescription
리턴 string

$shortDescription 보호되어 있는 프로퍼티

protected string $shortDescription
리턴 string

$shortDescriptionFormatter 보호되어 있는 프로퍼티

protected string $shortDescriptionFormatter
리턴 string

$sku 보호되어 있는 프로퍼티

protected string $sku
리턴 string

$slug 보호되어 있는 프로퍼티

protected string $slug
리턴 string

$stock 보호되어 있는 프로퍼티

protected int $stock
리턴 integer

$updatedAt 보호되어 있는 프로퍼티

protected DateTime $updatedAt
리턴 DateTime

$variations 보호되어 있는 프로퍼티

protected ArrayCollection,Doctrine\Common\Collections $variations
리턴 Doctrine\Common\Collections\ArrayCollection

$vatRate 보호되어 있는 프로퍼티

protected float $vatRate
리턴 float