Class StoredProduct
| category |
System |
|---|---|
| package |
Product |
| subpackage |
Entities |
__construct(\ProductSettingsInterface $settings)
addAddonValues(\KeyValueCollection $keyValueCollection) : \GXEngineProduct
Adds a key value collection to a product.
\GXEngineProductSame instance for chained method calls.
deleteAddonValue(\StringType $key) : \GXEngineProduct
Deletes an addon value of a product.
| Throws |
|
|---|
\GXEngineProductSame instance for chained method calls.
getAddedDateTime() : \DateTime
Returns the added date time of the product.
\DateTimeThe added date time.
getAdditionalImages() : \ProductImageCollection
getAddonValue(\StringType $key) : string
Returns the addon value of a product, depending on the provided key.
| Throws |
|
|---|
stringThe addon value.
getAddonValueContainerId() : integer
integer
getAddonValues() : \KeyValueCollection
Returns a key value collection of the product.
\KeyValueCollectionThe key value collection.
getAvailableDateTime() : \DateTime
Returns the available date time of the product.
\DateTimeThe available date time.
getCheckoutInformation(\LanguageCode $language) : string
Returns the checkout information of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe checkout information of the product.
getDescription(\LanguageCode $language) : string
Returns the description of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe description of the product.
getDiscountAllowed() : float
Returns the allowed discount.
floatThe allowed discount.
getEan() : string
Returns the EAN of the product.
stringThe EAN of the product.
getImageContainer() : \ProductImageContainer
getInfoUrl(\LanguageCode $language) : string
Returns the URL for further information of the product (e.g. manufacturer homepage), depending on the provided language code.
stringProduct's Manufacturer URL
getKeywords(\LanguageCode $language) : string
Returns the keywords of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe keywords of the product.
getLastModifiedDateTime() : \DateTime
Returns the last modified date time.
\DateTimeThe last modified date time.
getManufacturerId() : integer
Returns the manufacturer ID.
integerThe manufacturer ID.
getMetaDescription(\LanguageCode $language) : string
Returns the meta description of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe meta description of the product.
getMetaKeywords(\LanguageCode $language) : string
Returns the meta keywords of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe meta keywords of the product.
getMetaTitle(\LanguageCode $language) : string
Returns the meta title of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe meta title of the product.
getName(\LanguageCode $language) : string
Returns the name of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe name of the product.
getOrderedCount() : integer
Returns the ordered count of the product.
integerThe ordered count.
getPrice() : float
Returns the price of a product.
floatThe price of the product.
getPrimaryImage() : \ProductImage
getProductId() : integer
Returns the ID of the stored product.
integerThe product ID.
getProductModel() : string
Returns the product model.
stringThe product model.
getProductTypeId() : integer
Returns the product type ID.
integerThe product type ID.
getQuantity() : float
Returns the quantity of the product.
floatThe quantity of the product.
getQuantityUnitId() : integer
Returns the quantity unit ID.
integerThe quantity unit ID.
getSettings() : \ProductSettingsInterface
getShippingCosts() : float
Returns the shipping cost of the product.
floatThe shipping costs of the product.
getShippingTimeId() : integer
Returns the shipping time ID of the product.
integerThe shipping time ID.
getShortDescription(\LanguageCode $language) : string
Returns the short description of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe short description of the product.
getSortOrder() : integer
Returns an integer which represents a specific sort order.
integerThe sort order.
getSpecialOfferId() : integer
integerThe special offer id.
getTaxClassId() : integer
Returns the tax class ID of the product.
integerThe tax class ID.
getUrl(\LanguageCode $language) : string
Returns the URL for further information of the product (e.g. manufacturer homepage), depending on the provided language code.
| deprecated |
Use ::getInfoUrl() instead. Will be removed in GX3.11. |
|---|
stringProduct's Manufacturer URL
getUrlKeywords(\LanguageCode $language) : string
Returns the URL keywords of the product, depending on the provided language code.
| Throws |
|
|---|
stringThe URL keywords of the product.
getUrlRewrite(\LanguageCode $language) : \UrlRewrite
Returns the URL rewrite of the product, depending on the provided language code.
| Throws |
|
|---|
\UrlRewriteThe URL rewrite of the product.
getUrlRewrites() : \UrlRewriteCollection
Returns the URL rewrites of the product.
\UrlRewriteCollectionThe URL rewrites of the product.
getViewedCount(\LanguageCode $language) : integer
Returns the current view count of the product, depending on the provided language code.
| Throws |
|
|---|
integerThe current view count.
getVpeId() : integer
Returns the VPE ID.
integerVPE ID.
getVpeValue() : float
Returns the VPE value.
floatThe VPE value.
getWeight() : float
Returns the weight of the product.
floatThe weight of the product.
isActive() : boolean
Checks if a product is active.
booleanProduct status.
isFsk18() : boolean
Checks if the product is only available for FSK 18.
booleanIs the product FSK18?
isVpeActive() : boolean
Checks if VPE is active on the product.
booleanIs VPE active on the product?
setActive(\BoolType $status) : \GXEngineProduct
Activates or deactivates a product status.
\GXEngineProductSame instance for chained method calls.
setAddedDateTime(\DateTime $date) : \GXEngineProduct
\DateTimeAdded date time.
\GXEngineProductSame instance for chained method calls.
setAddonValue(\StringType $key, \StringType $value) : \GXEngineProduct
Sets the addon value of a product.
\GXEngineProductSame instance for chained method calls.
setAvailableDateTime(\DateTime $date) : \GXEngineProduct
Sets an available date time.
\DateTimeThe date time to add.
\GXEngineProductSame instance for chained method calls.
setCheckoutInformation(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the checkout information of a product.
\GXEngineProductSame instance for chained method calls.
setDescription(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the products description.
\GXEngineProductSame instance for chained method calls.
setDiscountAllowed(\DecimalType $discount) : \GXEngineProduct
Sets the allowed discount of a product.
\GXEngineProductSame instance for chained method calls.
setEan(\StringType $ean) : \GXEngineProduct
Sets a EAN for the product.
\GXEngineProductSame instance for chained method calls.
setFsk18(\BoolType $status) : \GXEngineProduct
Activates or deactivates FSK18 for a product.
\GXEngineProductSame instance for chained method calls.
setImageContainer(\ProductImageContainerInterface $images) : \GXEngineProduct
Sets the image container of a product.
\GXEngineProductSame instance for chained method calls.
setInfoUrl(\StringType $url, \LanguageCode $language) : \GXEngineProduct
Sets the product's info URL (e.g. homepage of the manufacturer).
\GXEngineProductSame instance for chained method calls.
setKeywords(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the products keywords.
\GXEngineProductSame instance for chained method calls.
setLastModifiedDateTime(\DateTime $date) : \GXEngineProduct
Sets the last modified date time.
\DateTimeThe last modified date time.
\GXEngineProductSame instance for chained method calls.
setManufacturerId(\IdType $id) : \GXEngineProduct
Sets the manufacturer ID of a product.
\GXEngineProductSame instance for chained method calls.
setMetaDescription(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the meta description of a product.
\GXEngineProductSame instance for chained method calls.
setMetaKeywords(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the products meta keywords.
\GXEngineProductSame instance for chained method calls.
setMetaTitle(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the meta title of a product.
\GXEngineProductSame instance for chained method calls.
setName(\StringType $text, \LanguageCode $language) : \GXEngineProduct
setOrderedCount(\IntType $count) : \GXEngineProduct
setPrice(\DecimalType $price) : \GXEngineProduct
Sets a price of the product.
\GXEngineProductSame instance for chained method calls.
setProductModel(\StringType $model) : \GXEngineProduct
setProductTypeId(\IdType $id) : \GXEngineProduct
setQuantity(\DecimalType $quantity) : \GXEngineProduct
Sets a quantity for the product.
\GXEngineProductSame instance for chained method calls.
setQuantityUnitId(\IdType $id) : \ProductInterface
Sets the quantity unit ID of a product.
\ProductInterfaceSame instance for chained method calls.
setSettings(\ProductSettingsInterface $productSettings) : \GXEngineProduct
setShippingCosts(\DecimalType $price) : \GXEngineProduct
Sets the shipping costs of a product.
\GXEngineProductSame instance for chained method calls.
setShippingTimeId(\IdType $id) : \GXEngineProduct
Sets the shipping time ID of a product.
\GXEngineProductSame instance for chained method calls.
setShortDescription(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the products description.
\GXEngineProductSame instance for chained method calls.
setSortOrder(\IntType $sortOrder) : \GXEngineProduct
Sets the sort order of the product.
\GXEngineProductSame instance for chained method calls.
setSpecialOfferId(\IdType $id) : \GXEngineProduct
setTaxClassId(\IdType $id) : \GXEngineProduct
Sets a tax class ID for the product.
\GXEngineProductSame instance for chained method calls.
setUrl(\StringType $url, \LanguageCode $language) : \GXEngineProduct
Sets the product's info URL (e.g. homepage of the manufacturer).
| deprecated |
Use ::setInfoUrl() instead. Will be removed in GX3.11. |
|---|
\GXEngineProductSame instance for chained method calls.
setUrlKeywords(\StringType $text, \LanguageCode $language) : \GXEngineProduct
Sets the products URL Keywords.
\GXEngineProductSame instance for chained method calls.
setUrlRewrite(\UrlRewrite $urlRewrite, \LanguageCode $language) : \GXEngineProduct
Sets the products URL rewrite for the provided language code.
\GXEngineProductSame instance for chained method calls.
setUrlRewrites(\UrlRewriteCollection $urlRewrites) : \GXEngineProduct
Sets the products URL rewrites.
\GXEngineProductSame instance for chained method calls.
setViewedCount(\IntType $count, \LanguageCode $language) : \GXEngineProduct
setVpeActive(\BoolType $status) : \GXEngineProduct
Activates or deactivates VPE for a product.
\GXEngineProductSame instance for chained method calls.
setVpeId(\IdType $id) : \GXEngineProduct
Sets the VPE ID of a product.
\GXEngineProductSame instance for chained method calls.
setVpeValue(\DecimalType $vpeValue) : \GXEngineProduct
Sets the VPE value of a product.
\GXEngineProductSame instance for chained method calls.
setWeight(\DecimalType $weight) : \GXEngineProduct
Sets the weight of a product.
\GXEngineProductSame instance for chained method calls.
productId : integer
| var |
|---|
integer
settings : \ProductSettingsInterface
active : boolean
| var |
|---|
boolean
sortOrder : integer
| var |
|---|
integer
addedDateTime : \DateTime
| var |
|---|
\DateTime
lastModifiedDateTime : \DateTime
| var |
|---|
\DateTime
viewedCount : \EditableKeyValueCollection
orderedCount : integer
| var |
|---|
integer
names : \EditableKeyValueCollection
descriptions : \EditableKeyValueCollection
shortDescriptions : \EditableKeyValueCollection
keywords : \EditableKeyValueCollection
url : \EditableKeyValueCollection
urlKeywords : \EditableKeyValueCollection
checkoutInformation : \EditableKeyValueCollection
productModel : string
| var |
|---|
string
ean : string
| var |
|---|
string
price : float
| var |
|---|
float
taxClassId : integer
| var |
|---|
integer
quantity : float
| var |
|---|
float
weight : float
| var |
|---|
float
discountAllowed : float
| var |
|---|
float
shippingCosts : float
| var |
|---|
float
shippingTimeId : integer
| var |
|---|
integer
productTypeId : integer
| var |
|---|
integer
manufacturerId : integer
| var |
|---|
integer
quantityUnitId : integer
| var |
|---|
integer
fsk18 : boolean
| var |
|---|
boolean
vpeActive : boolean
| var |
|---|
boolean
vpeId : integer
| var |
|---|
integer
vpeValue : float
| var |
|---|
float
addonValues : \EditableKeyValueCollection
imageContainer : \ProductImageContainer
infoUrl : \EditableKeyValueCollection
specialOfferId : integer
| var |
|---|
integer