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

Наследование: implements Sonata\Component\Product\ProductInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$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