Свойство | Тип | Описание | |
---|---|---|---|
$createdAt | DateTime | ||
$deliveries | |||
$description | string | ||
$descriptionFormatter | string | ||
$enabled | boolean | ||
$enabledVariations | |||
$gallery | Sonata\MediaBundle\Model\GalleryInterface | ||
$image | Sonata\MediaBundle\Model\MediaInterface | ||
$name | string | ||
$options | array | ||
$packages | |||
$parent | Sonata\Component\Product\ProductInterface | ||
$price | float | ||
$priceIncludingVat | boolean | ||
$productCategories | |||
$productCollections | |||
$rawDescription | string | ||
$rawShortDescription | string | ||
$shortDescription | string | ||
$shortDescriptionFormatter | string | ||
$sku | string | ||
$slug | string | ||
$stock | integer | ||
$updatedAt | DateTime | ||
$variations | |||
$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 ( |
||
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 ( |
||
setParent ( Sonata\Component\Product\ProductInterface $parent ) | ||
setPrice ( $price ) | ||
setPriceIncludingVat ( $priceIncludingVat ) | ||
setProductCategories ( |
||
setProductCollections ( |
||
setQuantity ( $quantity ) | ||
setRawDescription ( $rawDescription ) | ||
setRawShortDescription ( $rawShortDescription ) | ||
setShortDescription ( $shortDescription ) | ||
setShortDescriptionFormatter ( $shortDescriptionFormatter ) | ||
setSku ( $sku ) | ||
setSlug ( $slug ) | ||
setStock ( $stock ) | ||
setUnitPrice ( $unitPrice ) | ||
setUpdatedAt ( DateTime $updatedAt = null ) | ||
setVariations ( |
||
setVatRate ( $vatRate ) | ||
slugify ( $text ) : mixed | string | source : http://snipplr.com/view/22741/slugify-a-string-in-php/. | |
toArray ( ) | ||
validateOneMainCategory ( Symfony\Component\Validator\ExecutionContextInterface $context ) |
public addDeliverie ( Sonata\Component\Product\DeliveryInterface $delivery ) | ||
$delivery | Sonata\Component\Product\DeliveryInterface |
public addDelivery ( Sonata\Component\Product\DeliveryInterface $delivery ) | ||
$delivery | Sonata\Component\Product\DeliveryInterface |
public addPackage ( Sonata\Component\Product\PackageInterface $package ) | ||
$package | Sonata\Component\Product\PackageInterface |
public addProductCategorie ( Sonata\Component\Product\ProductCategoryInterface $productCategory ) | ||
$productCategory | Sonata\Component\Product\ProductCategoryInterface |
public addProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory ) | ||
$productCategory | Sonata\Component\Product\ProductCategoryInterface |
public addProductCollection ( Sonata\Component\Product\ProductCollectionInterface $productCollection ) | ||
$productCollection | Sonata\Component\Product\ProductCollectionInterface |
public addVariation ( Sonata\Component\Product\ProductInterface $variation ) | ||
$variation | Sonata\Component\Product\ProductInterface |
public removeDeliverie ( Sonata\Component\Product\DeliveryInterface $delivery ) | ||
$delivery | Sonata\Component\Product\DeliveryInterface |
public removeDelivery ( Sonata\Component\Product\DeliveryInterface $delivery ) | ||
$delivery | Sonata\Component\Product\DeliveryInterface |
public removePackage ( Sonata\Component\Product\PackageInterface $package ) | ||
$package | Sonata\Component\Product\PackageInterface |
public removeProductCategorie ( Sonata\Component\Product\ProductCategoryInterface $productCategory ) | ||
$productCategory | Sonata\Component\Product\ProductCategoryInterface |
public removeProductCategory ( Sonata\Component\Product\ProductCategoryInterface $productCategory ) | ||
$productCategory | Sonata\Component\Product\ProductCategoryInterface |
public removeProductCollection ( Sonata\Component\Product\ProductCollectionInterface $productCollection ) | ||
$productCollection | Sonata\Component\Product\ProductCollectionInterface |
public removeVariation ( Sonata\Component\Product\ProductInterface $variation ) | ||
$variation | Sonata\Component\Product\ProductInterface |
public setCreatedAt ( DateTime $createdAt = null ) | ||
$createdAt | DateTime |
public setDeliveries ( |
||
$deliveries |
public setGallery ( Sonata\MediaBundle\Model\GalleryInterface $gallery = null ) | ||
$gallery | Sonata\MediaBundle\Model\GalleryInterface |
public setImage ( Sonata\MediaBundle\Model\MediaInterface $image = null ) | ||
$image | Sonata\MediaBundle\Model\MediaInterface |
public setPackages ( |
||
$packages |
public setParent ( Sonata\Component\Product\ProductInterface $parent ) | ||
$parent | Sonata\Component\Product\ProductInterface |
public setProductCategories ( |
||
$productCategories |
public setProductCollections ( |
||
$productCollections |
public setShortDescriptionFormatter ( $shortDescriptionFormatter ) |
public setUpdatedAt ( DateTime $updatedAt = null ) | ||
$updatedAt | DateTime |
public setVariations ( |
||
$variations |
public validateOneMainCategory ( Symfony\Component\Validator\ExecutionContextInterface $context ) | ||
$context | Symfony\Component\Validator\ExecutionContextInterface |
protected ArrayCollection,Doctrine\Common\Collections $deliveries | ||
Результат |
protected ArrayCollection,Doctrine\Common\Collections $enabledVariations | ||
Результат |
protected GalleryInterface,Sonata\MediaBundle\Model $gallery | ||
Результат | Sonata\MediaBundle\Model\GalleryInterface |
protected MediaInterface,Sonata\MediaBundle\Model $image | ||
Результат | Sonata\MediaBundle\Model\MediaInterface |
protected ArrayCollection,Doctrine\Common\Collections $packages | ||
Результат |
protected ProductInterface,Sonata\Component\Product $parent | ||
Результат | Sonata\Component\Product\ProductInterface |
protected ArrayCollection,Doctrine\Common\Collections $productCategories | ||
Результат |
protected ArrayCollection,Doctrine\Common\Collections $productCollections | ||
Результат |
protected string $shortDescriptionFormatter | ||
Результат | string |
protected ArrayCollection,Doctrine\Common\Collections $variations | ||
Результат |