<?php
/**
* Inheritance: no
* Variants: no
Fields Summary:
- guid [input]
- article [input]
- same [manyToManyObjectRelation]
- localizedfields [localizedfields]
-- name [input]
-- price [numeric]
-- isAviable [booleanSelect]
-- video [video]
-- description [wysiwyg]
-- gallery [imageGallery]
-- highlights [block]
--- highlight [textarea]
-- brandCountry [input]
-- manufacturerCountry [input]
-- material [input]
-- complectation [input]
-- colour [input]
-- style [input]
-- stickers [imageGallery]
-- wasteSetIncluded [input]
-- thermostatic [input]
-- concealedInstallation [input]
-- mixerType [input]
- brand [manyToOneRelation]
- collection [manyToOneRelation]
- productType [manyToOneRelation]
- barCode [input]
- releaseDate [datetime]
- previewOne [image]
- previewTwo [image]
- internationalGallery [imageGallery]
- warranty [numeric]
- depth [numeric]
- width [numeric]
- height [numeric]
- packageDepth [numeric]
- packageWidth [numeric]
- packageHeight [numeric]
- weight [numeric]
- categoryParameters [classificationstore]
- categoryProperties [classificationstore]
- categories [manyToManyObjectRelation]
- awards [manyToManyObjectRelation]
- AmazonProduct [reverseObjectRelation]
- manuals [manyToManyRelation]
- schemes [imageGallery]
- scheme [image]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Product\Listing getList()
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGuid($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByArticle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getBySame($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPrice($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByIsAviable($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByVideo($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByGallery($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByHighlights($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBrandCountry($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByManufacturerCountry($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByMaterial($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByComplectation($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByColour($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByStyle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByStickers($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByWasteSetIncluded($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByThermostatic($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByConcealedInstallation($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByMixerType($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBrand($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCollection($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByProductType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByBarCode($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByReleaseDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPreviewOne($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPreviewTwo($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByWarranty($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByDepth($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByWidth($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByHeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPackageDepth($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPackageWidth($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByPackageHeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByWeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByAwards($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByAmazonProduct($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByManuals($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Product\Listing|\Pimcore\Model\DataObject\Product|null getByScheme($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Product extends Concrete
{
protected $o_classId = "35";
protected $o_className = "Product";
protected $guid;
protected $article;
protected $same;
protected $localizedfields;
protected $brand;
protected $collection;
protected $productType;
protected $barCode;
protected $releaseDate;
protected $previewOne;
protected $previewTwo;
protected $internationalGallery;
protected $warranty;
protected $depth;
protected $width;
protected $height;
protected $packageDepth;
protected $packageWidth;
protected $packageHeight;
protected $weight;
protected $categoryParameters;
protected $categoryProperties;
protected $categories;
protected $awards;
protected $manuals;
protected $schemes;
protected $scheme;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Product
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get guid - guid
* @return string|null
*/
public function getGuid(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("guid");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->guid;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set guid - guid
* @param string|null $guid
* @return \Pimcore\Model\DataObject\Product
*/
public function setGuid(?string $guid)
{
$this->guid = $guid;
return $this;
}
/**
* Get article - article
* @return string|null
*/
public function getArticle(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("article");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->article;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set article - article
* @param string|null $article
* @return \Pimcore\Model\DataObject\Product
*/
public function setArticle(?string $article)
{
$this->article = $article;
return $this;
}
/**
* Get same - same
* @return \Pimcore\Model\DataObject\Product[]
*/
public function getSame(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("same");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("same")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set same - same
* @param \Pimcore\Model\DataObject\Product[] $same
* @return \Pimcore\Model\DataObject\Product
*/
public function setSame(?array $same)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("same");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getSame();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $same);
if (!$isEqual) {
$this->markFieldDirty("same", true);
}
$this->same = $fd->preSetData($this, $same);
return $this;
}
/**
* Get localizedfields -
* @return \Pimcore\Model\DataObject\Localizedfield|null
*/
public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("localizedfields");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get name - name
* @return string|null
*/
public function getName($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("name", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("name");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get price - price
* @return float|null
*/
public function getPrice($language = null): ?float
{
$data = $this->getLocalizedfields()->getLocalizedValue("price", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("price");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get isAviable - Is aviable
* @return bool|null
*/
public function getIsAviable($language = null): ?bool
{
$data = $this->getLocalizedfields()->getLocalizedValue("isAviable", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isAviable");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get video - video
* @return \Pimcore\Model\DataObject\Data\Video|null
*/
public function getVideo($language = null): ?\Pimcore\Model\DataObject\Data\Video
{
$data = $this->getLocalizedfields()->getLocalizedValue("video", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("video");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get description - description
* @return string|null
*/
public function getDescription($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("description", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("description");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get gallery - gallery
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getGallery($language = null): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
$data = $this->getLocalizedfields()->getLocalizedValue("gallery", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gallery");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get highlights - Highlights
* @return \Pimcore\Model\DataObject\Data\BlockElement[][]
*/
public function getHighlights($language = null): ?array
{
$data = $this->getLocalizedfields()->getLocalizedValue("highlights", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("highlights");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get brandCountry - brandCountry
* @return string|null
*/
public function getBrandCountry($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("brandCountry", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("brandCountry");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get manufacturerCountry - manufacturerCountry
* @return string|null
*/
public function getManufacturerCountry($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("manufacturerCountry", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("manufacturerCountry");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get material - material
* @return string|null
*/
public function getMaterial($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("material", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("material");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get complectation - complectation
* @return string|null
*/
public function getComplectation($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("complectation", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("complectation");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get colour - colour
* @return string|null
*/
public function getColour($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("colour", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("colour");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get style - style
* @return string|null
*/
public function getStyle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("style", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("style");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get stickers - stickers
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getStickers($language = null): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
$data = $this->getLocalizedfields()->getLocalizedValue("stickers", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("stickers");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get wasteSetIncluded - Waste set included
* @return string|null
*/
public function getWasteSetIncluded($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("wasteSetIncluded", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("wasteSetIncluded");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get thermostatic - Thermostatic
* @return string|null
*/
public function getThermostatic($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("thermostatic", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("thermostatic");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get concealedInstallation - Concealed installation
* @return string|null
*/
public function getConcealedInstallation($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("concealedInstallation", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("concealedInstallation");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get mixerType - Mixer type
* @return string|null
*/
public function getMixerType($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("mixerType", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("mixerType");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\Product
*/
public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
{
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set name - name
* @param string|null $name
* @return \Pimcore\Model\DataObject\Product
*/
public function setName (?string $name, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("name", $name, $language, !$isEqual);
return $this;
}
/**
* Set price - price
* @param float|null $price
* @return \Pimcore\Model\DataObject\Product
*/
public function setPrice (?float $price, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("price", $price, $language, !$isEqual);
return $this;
}
/**
* Set isAviable - Is aviable
* @param bool|null $isAviable
* @return \Pimcore\Model\DataObject\Product
*/
public function setIsAviable (?bool $isAviable, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("isAviable", $isAviable, $language, !$isEqual);
return $this;
}
/**
* Set video - video
* @param \Pimcore\Model\DataObject\Data\Video|null $video
* @return \Pimcore\Model\DataObject\Product
*/
public function setVideo (?\Pimcore\Model\DataObject\Data\Video $video, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("video", $video, $language, !$isEqual);
return $this;
}
/**
* Set description - description
* @param string|null $description
* @return \Pimcore\Model\DataObject\Product
*/
public function setDescription (?string $description, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("description", $description, $language, !$isEqual);
return $this;
}
/**
* Set gallery - gallery
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $gallery
* @return \Pimcore\Model\DataObject\Product
*/
public function setGallery (?\Pimcore\Model\DataObject\Data\ImageGallery $gallery, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("gallery", $gallery, $language, !$isEqual);
return $this;
}
/**
* Set highlights - Highlights
* @param \Pimcore\Model\DataObject\Data\BlockElement[][] $highlights
* @return \Pimcore\Model\DataObject\Product
*/
public function setHighlights (?array $highlights, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("highlights", $highlights, $language, !$isEqual);
return $this;
}
/**
* Set brandCountry - brandCountry
* @param string|null $brandCountry
* @return \Pimcore\Model\DataObject\Product
*/
public function setBrandCountry (?string $brandCountry, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("brandCountry", $brandCountry, $language, !$isEqual);
return $this;
}
/**
* Set manufacturerCountry - manufacturerCountry
* @param string|null $manufacturerCountry
* @return \Pimcore\Model\DataObject\Product
*/
public function setManufacturerCountry (?string $manufacturerCountry, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("manufacturerCountry", $manufacturerCountry, $language, !$isEqual);
return $this;
}
/**
* Set material - material
* @param string|null $material
* @return \Pimcore\Model\DataObject\Product
*/
public function setMaterial (?string $material, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("material", $material, $language, !$isEqual);
return $this;
}
/**
* Set complectation - complectation
* @param string|null $complectation
* @return \Pimcore\Model\DataObject\Product
*/
public function setComplectation (?string $complectation, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("complectation", $complectation, $language, !$isEqual);
return $this;
}
/**
* Set colour - colour
* @param string|null $colour
* @return \Pimcore\Model\DataObject\Product
*/
public function setColour (?string $colour, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("colour", $colour, $language, !$isEqual);
return $this;
}
/**
* Set style - style
* @param string|null $style
* @return \Pimcore\Model\DataObject\Product
*/
public function setStyle (?string $style, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("style", $style, $language, !$isEqual);
return $this;
}
/**
* Set stickers - stickers
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $stickers
* @return \Pimcore\Model\DataObject\Product
*/
public function setStickers (?\Pimcore\Model\DataObject\Data\ImageGallery $stickers, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("stickers", $stickers, $language, !$isEqual);
return $this;
}
/**
* Set wasteSetIncluded - Waste set included
* @param string|null $wasteSetIncluded
* @return \Pimcore\Model\DataObject\Product
*/
public function setWasteSetIncluded (?string $wasteSetIncluded, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("wasteSetIncluded", $wasteSetIncluded, $language, !$isEqual);
return $this;
}
/**
* Set thermostatic - Thermostatic
* @param string|null $thermostatic
* @return \Pimcore\Model\DataObject\Product
*/
public function setThermostatic (?string $thermostatic, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("thermostatic", $thermostatic, $language, !$isEqual);
return $this;
}
/**
* Set concealedInstallation - Concealed installation
* @param string|null $concealedInstallation
* @return \Pimcore\Model\DataObject\Product
*/
public function setConcealedInstallation (?string $concealedInstallation, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("concealedInstallation", $concealedInstallation, $language, !$isEqual);
return $this;
}
/**
* Set mixerType - Mixer type
* @param string|null $mixerType
* @return \Pimcore\Model\DataObject\Product
*/
public function setMixerType (?string $mixerType, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("mixerType", $mixerType, $language, !$isEqual);
return $this;
}
/**
* Get brand - Brand
* @return \Pimcore\Model\DataObject\Brand|null
*/
public function getBrand(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("brand");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("brand")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set brand - Brand
* @param \Pimcore\Model\DataObject\Brand $brand
* @return \Pimcore\Model\DataObject\Product
*/
public function setBrand(?\Pimcore\Model\Element\AbstractElement $brand)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("brand");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getBrand();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $brand);
if (!$isEqual) {
$this->markFieldDirty("brand", true);
}
$this->brand = $fd->preSetData($this, $brand);
return $this;
}
/**
* Get collection - Collection
* @return \Pimcore\Model\DataObject\Collection|null
*/
public function getCollection(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("collection");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("collection")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set collection - Collection
* @param \Pimcore\Model\DataObject\Collection $collection
* @return \Pimcore\Model\DataObject\Product
*/
public function setCollection(?\Pimcore\Model\Element\AbstractElement $collection)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("collection");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCollection();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $collection);
if (!$isEqual) {
$this->markFieldDirty("collection", true);
}
$this->collection = $fd->preSetData($this, $collection);
return $this;
}
/**
* Get productType - productType
* @return \Pimcore\Model\DataObject\ProductType|null
*/
public function getProductType(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("productType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("productType")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set productType - productType
* @param \Pimcore\Model\DataObject\ProductType $productType
* @return \Pimcore\Model\DataObject\Product
*/
public function setProductType(?\Pimcore\Model\Element\AbstractElement $productType)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("productType");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getProductType();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $productType);
if (!$isEqual) {
$this->markFieldDirty("productType", true);
}
$this->productType = $fd->preSetData($this, $productType);
return $this;
}
/**
* Get barCode - barCode
* @return string|null
*/
public function getBarCode(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("barCode");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->barCode;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set barCode - barCode
* @param string|null $barCode
* @return \Pimcore\Model\DataObject\Product
*/
public function setBarCode(?string $barCode)
{
$this->barCode = $barCode;
return $this;
}
/**
* Get releaseDate - releaseDate
* @return \Carbon\Carbon|null
*/
public function getReleaseDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("releaseDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->releaseDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set releaseDate - releaseDate
* @param \Carbon\Carbon|null $releaseDate
* @return \Pimcore\Model\DataObject\Product
*/
public function setReleaseDate(?\Carbon\Carbon $releaseDate)
{
$this->releaseDate = $releaseDate;
return $this;
}
/**
* Get previewOne - previewOne
* @return \Pimcore\Model\Asset\Image|null
*/
public function getPreviewOne(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("previewOne");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->previewOne;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set previewOne - previewOne
* @param \Pimcore\Model\Asset\Image|null $previewOne
* @return \Pimcore\Model\DataObject\Product
*/
public function setPreviewOne(?\Pimcore\Model\Asset\Image $previewOne)
{
$this->previewOne = $previewOne;
return $this;
}
/**
* Get previewTwo - previewTwo
* @return \Pimcore\Model\Asset\Image|null
*/
public function getPreviewTwo(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("previewTwo");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->previewTwo;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set previewTwo - previewTwo
* @param \Pimcore\Model\Asset\Image|null $previewTwo
* @return \Pimcore\Model\DataObject\Product
*/
public function setPreviewTwo(?\Pimcore\Model\Asset\Image $previewTwo)
{
$this->previewTwo = $previewTwo;
return $this;
}
/**
* Get internationalGallery - International gallery
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getInternationalGallery(): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("internationalGallery");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->internationalGallery;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set internationalGallery - International gallery
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $internationalGallery
* @return \Pimcore\Model\DataObject\Product
*/
public function setInternationalGallery(?\Pimcore\Model\DataObject\Data\ImageGallery $internationalGallery)
{
$this->internationalGallery = $internationalGallery;
return $this;
}
/**
* Get warranty - warranty
* @return float|null
*/
public function getWarranty(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("warranty");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->warranty;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set warranty - warranty
* @param float|null $warranty
* @return \Pimcore\Model\DataObject\Product
*/
public function setWarranty(?float $warranty)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("warranty");
$this->warranty = $fd->preSetData($this, $warranty);
return $this;
}
/**
* Get depth - depth
* @return float|null
*/
public function getDepth(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("depth");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->depth;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set depth - depth
* @param float|null $depth
* @return \Pimcore\Model\DataObject\Product
*/
public function setDepth(?float $depth)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("depth");
$this->depth = $fd->preSetData($this, $depth);
return $this;
}
/**
* Get width - width
* @return float|null
*/
public function getWidth(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("width");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->width;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set width - width
* @param float|null $width
* @return \Pimcore\Model\DataObject\Product
*/
public function setWidth(?float $width)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("width");
$this->width = $fd->preSetData($this, $width);
return $this;
}
/**
* Get height - height
* @return float|null
*/
public function getHeight(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("height");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->height;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set height - height
* @param float|null $height
* @return \Pimcore\Model\DataObject\Product
*/
public function setHeight(?float $height)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("height");
$this->height = $fd->preSetData($this, $height);
return $this;
}
/**
* Get packageDepth - packageDepth
* @return float|null
*/
public function getPackageDepth(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("packageDepth");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->packageDepth;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set packageDepth - packageDepth
* @param float|null $packageDepth
* @return \Pimcore\Model\DataObject\Product
*/
public function setPackageDepth(?float $packageDepth)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("packageDepth");
$this->packageDepth = $fd->preSetData($this, $packageDepth);
return $this;
}
/**
* Get packageWidth - packageWidth
* @return float|null
*/
public function getPackageWidth(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("packageWidth");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->packageWidth;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set packageWidth - packageWidth
* @param float|null $packageWidth
* @return \Pimcore\Model\DataObject\Product
*/
public function setPackageWidth(?float $packageWidth)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("packageWidth");
$this->packageWidth = $fd->preSetData($this, $packageWidth);
return $this;
}
/**
* Get packageHeight - packageHeight
* @return float|null
*/
public function getPackageHeight(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("packageHeight");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->packageHeight;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set packageHeight - packageHeight
* @param float|null $packageHeight
* @return \Pimcore\Model\DataObject\Product
*/
public function setPackageHeight(?float $packageHeight)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("packageHeight");
$this->packageHeight = $fd->preSetData($this, $packageHeight);
return $this;
}
/**
* Get weight - weight
* @return float|null
*/
public function getWeight(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("weight");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->weight;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set weight - weight
* @param float|null $weight
* @return \Pimcore\Model\DataObject\Product
*/
public function setWeight(?float $weight)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("weight");
$this->weight = $fd->preSetData($this, $weight);
return $this;
}
/**
* Get categoryParameters - categoryParameters
* @return \Pimcore\Model\DataObject\Classificationstore|null
*/
public function getCategoryParameters(): ?\Pimcore\Model\DataObject\Classificationstore
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("categoryParameters");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("categoryParameters")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categoryParameters - categoryParameters
* @param \Pimcore\Model\DataObject\Classificationstore|null $categoryParameters
* @return \Pimcore\Model\DataObject\Product
*/
public function setCategoryParameters(?\Pimcore\Model\DataObject\Classificationstore $categoryParameters)
{
$this->categoryParameters = $categoryParameters;
return $this;
}
/**
* Get categoryProperties - categoryProperties
* @return \Pimcore\Model\DataObject\Classificationstore|null
*/
public function getCategoryProperties(): ?\Pimcore\Model\DataObject\Classificationstore
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("categoryProperties");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("categoryProperties")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categoryProperties - categoryProperties
* @param \Pimcore\Model\DataObject\Classificationstore|null $categoryProperties
* @return \Pimcore\Model\DataObject\Product
*/
public function setCategoryProperties(?\Pimcore\Model\DataObject\Classificationstore $categoryProperties)
{
$this->categoryProperties = $categoryProperties;
return $this;
}
/**
* Get categories - categories
* @return \Pimcore\Model\DataObject\Category[]
*/
public function getCategories(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("categories");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("categories")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categories - categories
* @param \Pimcore\Model\DataObject\Category[] $categories
* @return \Pimcore\Model\DataObject\Product
*/
public function setCategories(?array $categories)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("categories");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategories();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $categories);
if (!$isEqual) {
$this->markFieldDirty("categories", true);
}
$this->categories = $fd->preSetData($this, $categories);
return $this;
}
/**
* Get awards - Awards
* @return \Pimcore\Model\DataObject\Award[]
*/
public function getAwards(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("awards");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("awards")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set awards - Awards
* @param \Pimcore\Model\DataObject\Award[] $awards
* @return \Pimcore\Model\DataObject\Product
*/
public function setAwards(?array $awards)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("awards");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAwards();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $awards);
if (!$isEqual) {
$this->markFieldDirty("awards", true);
}
$this->awards = $fd->preSetData($this, $awards);
return $this;
}
/**
* Get manuals - manuals
* @return \Pimcore\Model\Asset[]
*/
public function getManuals(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("manuals");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("manuals")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set manuals - manuals
* @param \Pimcore\Model\Asset[] $manuals
* @return \Pimcore\Model\DataObject\Product
*/
public function setManuals(?array $manuals)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("manuals");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getManuals();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $manuals);
if (!$isEqual) {
$this->markFieldDirty("manuals", true);
}
$this->manuals = $fd->preSetData($this, $manuals);
return $this;
}
/**
* Get schemes - Schemes
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getSchemes(): ?\Pimcore\Model\DataObject\Data\ImageGallery
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("schemes");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->schemes;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set schemes - Schemes
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $schemes
* @return \Pimcore\Model\DataObject\Product
*/
public function setSchemes(?\Pimcore\Model\DataObject\Data\ImageGallery $schemes)
{
$this->schemes = $schemes;
return $this;
}
/**
* Get scheme - Scheme
* @return \Pimcore\Model\Asset\Image|null
*/
public function getScheme(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("scheme");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->scheme;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set scheme - Scheme
* @param \Pimcore\Model\Asset\Image|null $scheme
* @return \Pimcore\Model\DataObject\Product
*/
public function setScheme(?\Pimcore\Model\Asset\Image $scheme)
{
$this->scheme = $scheme;
return $this;
}
}