<?php
/**
* Inheritance: yes
* Variants: yes
*
* Fields Summary:
* - localizedfields [localizedfields]
* -- name [input]
* -- shortDescription [textarea]
* -- slug [urlSlug]
* -- pimcoreMetaTitle [input]
* -- pimcoreMetaDescription [textarea]
* -- description [wysiwyg]
* - sku [input]
* - ean [input]
* - active [checkbox]
* - digitalProduct [booleanSelect]
* - manufacturer [coreShopRelation]
* - stores [coreShopStoreMultiselect]
* - orderable [booleanSelect]
* - availability [select]
* - refname [input]
* - uniqueName [input]
* - businessClass [input]
* - brand [input]
* - collection [input]
* - subcollection [input]
* - subcollectionseries [input]
* - typeofwatch [input]
* - style [input]
* - visualban [input]
* - visualwr [input]
* - calibernumber [manyToOneRelation]
* - movementtype [input]
* - accuracy [input]
* - accuracy2 [input]
* - accuracyinterval [input]
* - powerreserve [input]
* - gasketlife [input]
* - case [input]
* - backcase [input]
* - band [input]
* - bandWidth [input]
* - buckle [input]
* - glass [input]
* - formofcase [input]
* - dial [input]
* - colorofdial [input]
* - lumibrite [input]
* - bezel [input]
* - crownandbutton [input]
* - diamonds [input]
* - size [input]
* - size2 [input]
* - size3 [input]
* - weight_ [input]
* - waterresistance [input]
* - other1 [input]
* - other2 [input]
* - limited [input]
* - year [input]
* - series [input]
* - newsfromdate [date]
* - newstodate [date]
* - statusdetails [input]
* - group [input]
* - bandfilter [input]
* - casefilter [input]
* - movementtypefilter [input]
* - glassfilter [input]
* - diamondsfilter [input]
* - mainVariant [coreShopRelation]
* - allowedAttributeGroups [coreShopRelations]
* - attributes [coreShopRelations]
* - categories [coreShopRelations]
* - images [manyToManyRelation]
* - videos [manyToManyRelation]
* - onHold [numeric]
* - onHand [numeric]
* - isTracked [booleanSelect]
* - minimumQuantityToOrder [numeric]
* - maximumQuantityToOrder [numeric]
* - unitDefinitions [coreShopProductUnitDefinitions]
* - storeValues [coreShopStoreValues]
* - itemQuantityFactor [numeric]
* - wholesalePrice [coreShopMoney]
* - wholesaleBuyingPrice [coreShopMoneyCurrency]
* - taxRule [coreShopTaxRuleGroup]
* - outlet [checkbox]
* - specificPriceRules [coreShopProductSpecificPriceRules]
* - quantityPriceRules [coreShopProductQuantityPriceRules]
* - weight [numeric]
* - height [numeric]
* - width [numeric]
* - depth [numeric]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByShortDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByPimcoreMetaTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByPimcoreMetaDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySku($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByEan($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByActive($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByManufacturer($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByStores($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAvailability($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByRefname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByUniqueName($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBusinessClass($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBrand($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCollection($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySubcollection($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySubcollectionseries($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByTypeofwatch($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByStyle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByVisualban($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByVisualwr($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCalibernumber($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMovementtype($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAccuracy($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAccuracy2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAccuracyinterval($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByPowerreserve($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGasketlife($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCase($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBackcase($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBand($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBandWidth($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBuckle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGlass($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByFormofcase($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDial($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByColorofdial($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByLumibrite($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBezel($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCrownandbutton($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDiamonds($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySize($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySize2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySize3($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWeight_($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWaterresistance($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOther1($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOther2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByLimited($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByYear($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getBySeries($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByNewsfromdate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByNewstodate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByStatusdetails($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGroup($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByBandfilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCasefilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMovementtypefilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByGlassfilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDiamondsfilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMainVariant($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAllowedAttributeGroups($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByAttributes($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByImages($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByVideos($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOnHold($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOnHand($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMinimumQuantityToOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByMaximumQuantityToOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByItemQuantityFactor($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByOutlet($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByHeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByWidth($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopProduct\Listing|\Pimcore\Model\DataObject\CoreShopProduct|null getByDepth($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class CoreShopProduct extends \CoreShop\Component\Core\Model\Product
{
use \App\Traits\CoresShopProductExtend;
protected $o_classId = "cs_product";
protected $o_className = "CoreShopProduct";
protected $localizedfields;
protected $sku;
protected $ean;
protected $active;
protected $digitalProduct;
protected $manufacturer;
protected $stores;
protected $orderable;
protected $availability;
protected $refname;
protected $uniqueName;
protected $businessClass;
protected $brand;
protected $collection;
protected $subcollection;
protected $subcollectionseries;
protected $typeofwatch;
protected $style;
protected $visualban;
protected $visualwr;
protected $calibernumber;
protected $movementtype;
protected $accuracy;
protected $accuracy2;
protected $accuracyinterval;
protected $powerreserve;
protected $gasketlife;
protected $case;
protected $backcase;
protected $band;
protected $bandWidth;
protected $buckle;
protected $glass;
protected $formofcase;
protected $dial;
protected $colorofdial;
protected $lumibrite;
protected $bezel;
protected $crownandbutton;
protected $diamonds;
protected $size;
protected $size2;
protected $size3;
protected $weight_;
protected $waterresistance;
protected $other1;
protected $other2;
protected $limited;
protected $year;
protected $series;
protected $newsfromdate;
protected $newstodate;
protected $statusdetails;
protected $group;
protected $bandfilter;
protected $casefilter;
protected $movementtypefilter;
protected $glassfilter;
protected $diamondsfilter;
protected $mainVariant;
protected $allowedAttributeGroups;
protected $attributes;
protected $categories;
protected $images;
protected $videos;
protected $onHold;
protected $onHand;
protected $isTracked;
protected $minimumQuantityToOrder;
protected $maximumQuantityToOrder;
protected $unitDefinitions;
protected $storeValues;
protected $itemQuantityFactor;
protected $wholesalePrice;
protected $wholesaleBuyingPrice;
protected $taxRule;
protected $outlet;
protected $specificPriceRules;
protected $quantityPriceRules;
protected $weight;
protected $height;
protected $width;
protected $depth;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* 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 (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("localizedfields")->isEmpty($data)) {
try {
return $this->getValueFromParent("localizedfields");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get name - coreshop.product.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 shortDescription - coreshop.product.short_description
* @return string|null
*/
public function getShortDescription($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("shortDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("shortDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get slug - coreshop.product.slug
* @return \Pimcore\Model\DataObject\Data\UrlSlug[]
*/
public function getSlug($language = null): ?array
{
$data = $this->getLocalizedfields()->getLocalizedValue("slug", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("slug");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get pimcoreMetaTitle - coreshop.product.seo_meta_title
* @return string|null
*/
public function getPimcoreMetaTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("pimcoreMetaTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("pimcoreMetaTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get pimcoreMetaDescription - coreshop.product.seo_meta_description
* @return string|null
*/
public function getPimcoreMetaDescription($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("pimcoreMetaDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("pimcoreMetaDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get description - coreshop.product.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;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
{
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set name - coreshop.product.name
* @param string|null $name
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setName (?string $name, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("name", $name, $language, !$isEqual);
return $this;
}
/**
* Set shortDescription - coreshop.product.short_description
* @param string|null $shortDescription
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setShortDescription (?string $shortDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("shortDescription", $shortDescription, $language, !$isEqual);
return $this;
}
/**
* Set slug - coreshop.product.slug
* @param \Pimcore\Model\DataObject\Data\UrlSlug[] $slug
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSlug (?array $slug, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("slug");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getSlug($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $slug);
if (!$isEqual) {
$this->markFieldDirty("slug", true);
}
$this->getLocalizedfields()->setLocalizedValue("slug", $slug, $language, !$isEqual);
return $this;
}
/**
* Set pimcoreMetaTitle - coreshop.product.seo_meta_title
* @param string|null $pimcoreMetaTitle
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setPimcoreMetaTitle (?string $pimcoreMetaTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("pimcoreMetaTitle", $pimcoreMetaTitle, $language, !$isEqual);
return $this;
}
/**
* Set pimcoreMetaDescription - coreshop.product.seo_meta_description
* @param string|null $pimcoreMetaDescription
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setPimcoreMetaDescription (?string $pimcoreMetaDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("pimcoreMetaDescription", $pimcoreMetaDescription, $language, !$isEqual);
return $this;
}
/**
* Set description - coreshop.product.description
* @param string|null $description
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setDescription (?string $description, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("description", $description, $language, !$isEqual);
return $this;
}
/**
* Get sku - coreshop.product.sku
* @return string|null
*/
public function getSku(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sku");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->sku;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("sku")->isEmpty($data)) {
try {
return $this->getValueFromParent("sku");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set sku - coreshop.product.sku
* @param string|null $sku
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSku(?string $sku)
{
$this->sku = $sku;
return $this;
}
/**
* Get ean - coreshop.product.ean13
* @return string|null
*/
public function getEan(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ean");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->ean;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("ean")->isEmpty($data)) {
try {
return $this->getValueFromParent("ean");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set ean - coreshop.product.ean13
* @param string|null $ean
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setEan(?string $ean)
{
$this->ean = $ean;
return $this;
}
/**
* Get active - coreshop.product.active
* @return bool|null
*/
public function getActive(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("active");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->active;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("active")->isEmpty($data)) {
try {
return $this->getValueFromParent("active");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set active - coreshop.product.active
* @param bool|null $active
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setActive(?bool $active)
{
$this->active = $active;
return $this;
}
/**
* Get digitalProduct - coreshop.product.digital_product
* @return bool|null
*/
public function getDigitalProduct(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("digitalProduct");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->digitalProduct;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("digitalProduct")->isEmpty($data)) {
try {
return $this->getValueFromParent("digitalProduct");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set digitalProduct - coreshop.product.digital_product
* @param bool|null $digitalProduct
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setDigitalProduct(?bool $digitalProduct)
{
$this->digitalProduct = $digitalProduct;
return $this;
}
/**
* Get manufacturer - coreshop.product.manufacturer
* @return ?\CoreShop\Component\Product\Model\ManufacturerInterface
*/
public function getManufacturer(): ?\CoreShop\Component\Product\Model\ManufacturerInterface
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("manufacturer");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("manufacturer")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("manufacturer")->isEmpty($data)) {
try {
return $this->getValueFromParent("manufacturer");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set manufacturer - coreshop.product.manufacturer
* @param ?\CoreShop\Component\Product\Model\ManufacturerInterface $manufacturer
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setManufacturer(?\CoreShop\Component\Product\Model\ManufacturerInterface $manufacturer)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
$fd = $this->getClass()->getFieldDefinition("manufacturer");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getManufacturer();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $manufacturer);
if (!$isEqual) {
$this->markFieldDirty("manufacturer", true);
}
$this->manufacturer = $fd->preSetData($this, $manufacturer);
return $this;
}
/**
* Get stores - coreshop.product.stores
* @return string[]|null
*/
public function getStores(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("stores");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("stores")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("stores")->isEmpty($data)) {
try {
return $this->getValueFromParent("stores");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set stores - coreshop.product.stores
* @param string[]|null $stores
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setStores(?array $stores)
{
$this->stores = $stores;
return $this;
}
/**
* Get orderable - Online rendelhető
* @return bool|null
*/
public function getOrderable(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("orderable");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->orderable;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("orderable")->isEmpty($data)) {
try {
return $this->getValueFromParent("orderable");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set orderable - Online rendelhető
* @param bool|null $orderable
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setOrderable(?bool $orderable)
{
$this->orderable = $orderable;
return $this;
}
/**
* Get availability - Availability
* @return string|null
*/
public function getAvailability(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("availability");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->availability;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("availability")->isEmpty($data)) {
try {
return $this->getValueFromParent("availability");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set availability - Availability
* @param string|null $availability
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setAvailability(?string $availability)
{
$this->availability = $availability;
return $this;
}
/**
* Get refname - coreshop.ui.product.metadata.ref_name
* @return string|null
*/
public function getRefname(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("refname");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->refname;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("refname")->isEmpty($data)) {
try {
return $this->getValueFromParent("refname");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set refname - coreshop.ui.product.metadata.ref_name
* @param string|null $refname
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setRefname(?string $refname)
{
$this->refname = $refname;
return $this;
}
/**
* Get uniqueName - coreshop.ui.product.metadata.uniqueName
* @return string|null
*/
public function getUniqueName(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("uniqueName");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->uniqueName;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("uniqueName")->isEmpty($data)) {
try {
return $this->getValueFromParent("uniqueName");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set uniqueName - coreshop.ui.product.metadata.uniqueName
* @param string|null $uniqueName
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setUniqueName(?string $uniqueName)
{
$this->uniqueName = $uniqueName;
return $this;
}
/**
* Get businessClass - coreshop.ui.product.metadata.uzlet_besorolas
* @return string|null
*/
public function getBusinessClass(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("businessClass");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->businessClass;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("businessClass")->isEmpty($data)) {
try {
return $this->getValueFromParent("businessClass");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set businessClass - coreshop.ui.product.metadata.uzlet_besorolas
* @param string|null $businessClass
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBusinessClass(?string $businessClass)
{
$this->businessClass = $businessClass;
return $this;
}
/**
* Get brand - coreshop.ui.product.metadata.brand
* @return string|null
*/
public function getBrand(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("brand");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->brand;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("brand")->isEmpty($data)) {
try {
return $this->getValueFromParent("brand");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set brand - coreshop.ui.product.metadata.brand
* @param string|null $brand
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBrand(?string $brand)
{
$this->brand = $brand;
return $this;
}
/**
* Get collection - coreshop.ui.product.metadata.collection
* @return string|null
*/
public function getCollection(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("collection");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->collection;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("collection")->isEmpty($data)) {
try {
return $this->getValueFromParent("collection");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set collection - coreshop.ui.product.metadata.collection
* @param string|null $collection
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setCollection(?string $collection)
{
$this->collection = $collection;
return $this;
}
/**
* Get subcollection - coreshop.ui.product.metadata.subcollection
* @return string|null
*/
public function getSubcollection(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("subcollection");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->subcollection;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("subcollection")->isEmpty($data)) {
try {
return $this->getValueFromParent("subcollection");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set subcollection - coreshop.ui.product.metadata.subcollection
* @param string|null $subcollection
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSubcollection(?string $subcollection)
{
$this->subcollection = $subcollection;
return $this;
}
/**
* Get subcollectionseries - coreshop.ui.product.metadata.subcollectionseries
* @return string|null
*/
public function getSubcollectionseries(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("subcollectionseries");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->subcollectionseries;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("subcollectionseries")->isEmpty($data)) {
try {
return $this->getValueFromParent("subcollectionseries");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set subcollectionseries - coreshop.ui.product.metadata.subcollectionseries
* @param string|null $subcollectionseries
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSubcollectionseries(?string $subcollectionseries)
{
$this->subcollectionseries = $subcollectionseries;
return $this;
}
/**
* Get typeofwatch - coreshop.ui.product.metadata.type_of_watch
* @return string|null
*/
public function getTypeofwatch(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("typeofwatch");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->typeofwatch;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("typeofwatch")->isEmpty($data)) {
try {
return $this->getValueFromParent("typeofwatch");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set typeofwatch - coreshop.ui.product.metadata.type_of_watch
* @param string|null $typeofwatch
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setTypeofwatch(?string $typeofwatch)
{
$this->typeofwatch = $typeofwatch;
return $this;
}
/**
* Get style - coreshop.ui.product.metadata.style
* @return string|null
*/
public function getStyle(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("style");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->style;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("style")->isEmpty($data)) {
try {
return $this->getValueFromParent("style");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set style - coreshop.ui.product.metadata.style
* @param string|null $style
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setStyle(?string $style)
{
$this->style = $style;
return $this;
}
/**
* Get visualban - coreshop.ui.product.metadata.visual_ban
* @return string|null
*/
public function getVisualban(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("visualban");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->visualban;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("visualban")->isEmpty($data)) {
try {
return $this->getValueFromParent("visualban");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set visualban - coreshop.ui.product.metadata.visual_ban
* @param string|null $visualban
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setVisualban(?string $visualban)
{
$this->visualban = $visualban;
return $this;
}
/**
* Get visualwr - coreshop.ui.product.metadata.visual_wr
* @return string|null
*/
public function getVisualwr(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("visualwr");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->visualwr;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("visualwr")->isEmpty($data)) {
try {
return $this->getValueFromParent("visualwr");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set visualwr - coreshop.ui.product.metadata.visual_wr
* @param string|null $visualwr
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setVisualwr(?string $visualwr)
{
$this->visualwr = $visualwr;
return $this;
}
/**
* Get calibernumber - coreshop.ui.product.metadata.caliber_number
* @return \Pimcore\Model\DataObject\Caliber|null
*/
public function getCalibernumber(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("calibernumber");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("calibernumber")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("calibernumber")->isEmpty($data)) {
try {
return $this->getValueFromParent("calibernumber");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set calibernumber - coreshop.ui.product.metadata.caliber_number
* @param \Pimcore\Model\DataObject\Caliber|null $calibernumber
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setCalibernumber(?\Pimcore\Model\Element\AbstractElement $calibernumber)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("calibernumber");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCalibernumber();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $calibernumber);
if (!$isEqual) {
$this->markFieldDirty("calibernumber", true);
}
$this->calibernumber = $fd->preSetData($this, $calibernumber);
return $this;
}
/**
* Get movementtype - coreshop.ui.product.metadata.movement_type
* @return string|null
*/
public function getMovementtype(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("movementtype");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->movementtype;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("movementtype")->isEmpty($data)) {
try {
return $this->getValueFromParent("movementtype");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set movementtype - coreshop.ui.product.metadata.movement_type
* @param string|null $movementtype
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setMovementtype(?string $movementtype)
{
$this->movementtype = $movementtype;
return $this;
}
/**
* Get accuracy - coreshop.ui.product.metadata.accuracy
* @return string|null
*/
public function getAccuracy(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("accuracy");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->accuracy;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("accuracy")->isEmpty($data)) {
try {
return $this->getValueFromParent("accuracy");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set accuracy - coreshop.ui.product.metadata.accuracy
* @param string|null $accuracy
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setAccuracy(?string $accuracy)
{
$this->accuracy = $accuracy;
return $this;
}
/**
* Get accuracy2 - coreshop.ui.product.metadata.accuracy_2
* @return string|null
*/
public function getAccuracy2(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("accuracy2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->accuracy2;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("accuracy2")->isEmpty($data)) {
try {
return $this->getValueFromParent("accuracy2");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set accuracy2 - coreshop.ui.product.metadata.accuracy_2
* @param string|null $accuracy2
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setAccuracy2(?string $accuracy2)
{
$this->accuracy2 = $accuracy2;
return $this;
}
/**
* Get accuracyinterval - coreshop.ui.product.metadata.accuracy_interval
* @return string|null
*/
public function getAccuracyinterval(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("accuracyinterval");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->accuracyinterval;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("accuracyinterval")->isEmpty($data)) {
try {
return $this->getValueFromParent("accuracyinterval");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set accuracyinterval - coreshop.ui.product.metadata.accuracy_interval
* @param string|null $accuracyinterval
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setAccuracyinterval(?string $accuracyinterval)
{
$this->accuracyinterval = $accuracyinterval;
return $this;
}
/**
* Get powerreserve - coreshop.ui.product.metadata.power_reserve
* @return string|null
*/
public function getPowerreserve(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("powerreserve");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->powerreserve;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("powerreserve")->isEmpty($data)) {
try {
return $this->getValueFromParent("powerreserve");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set powerreserve - coreshop.ui.product.metadata.power_reserve
* @param string|null $powerreserve
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setPowerreserve(?string $powerreserve)
{
$this->powerreserve = $powerreserve;
return $this;
}
/**
* Get gasketlife - coreshop.ui.product.metadata.gasket_life
* @return string|null
*/
public function getGasketlife(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gasketlife");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gasketlife;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("gasketlife")->isEmpty($data)) {
try {
return $this->getValueFromParent("gasketlife");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gasketlife - coreshop.ui.product.metadata.gasket_life
* @param string|null $gasketlife
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setGasketlife(?string $gasketlife)
{
$this->gasketlife = $gasketlife;
return $this;
}
/**
* Get case - coreshop.ui.product.metadata.case
* @return string|null
*/
public function getCase(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("case");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->case;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("case")->isEmpty($data)) {
try {
return $this->getValueFromParent("case");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set case - coreshop.ui.product.metadata.case
* @param string|null $case
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setCase(?string $case)
{
$this->case = $case;
return $this;
}
/**
* Get backcase - coreshop.ui.product.metadata.backcase
* @return string|null
*/
public function getBackcase(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("backcase");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->backcase;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("backcase")->isEmpty($data)) {
try {
return $this->getValueFromParent("backcase");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set backcase - coreshop.ui.product.metadata.backcase
* @param string|null $backcase
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBackcase(?string $backcase)
{
$this->backcase = $backcase;
return $this;
}
/**
* Get band - coreshop.ui.product.metadata.band
* @return string|null
*/
public function getBand(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("band");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->band;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("band")->isEmpty($data)) {
try {
return $this->getValueFromParent("band");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set band - coreshop.ui.product.metadata.band
* @param string|null $band
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBand(?string $band)
{
$this->band = $band;
return $this;
}
/**
* Get bandWidth - coreshop.ui.product.metadata.band_width
* @return string|null
*/
public function getBandWidth(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("bandWidth");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->bandWidth;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("bandWidth")->isEmpty($data)) {
try {
return $this->getValueFromParent("bandWidth");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set bandWidth - coreshop.ui.product.metadata.band_width
* @param string|null $bandWidth
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBandWidth(?string $bandWidth)
{
$this->bandWidth = $bandWidth;
return $this;
}
/**
* Get buckle - coreshop.ui.product.metadata.buckle
* @return string|null
*/
public function getBuckle(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("buckle");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->buckle;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("buckle")->isEmpty($data)) {
try {
return $this->getValueFromParent("buckle");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set buckle - coreshop.ui.product.metadata.buckle
* @param string|null $buckle
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBuckle(?string $buckle)
{
$this->buckle = $buckle;
return $this;
}
/**
* Get glass - coreshop.ui.product.metadata.glass
* @return string|null
*/
public function getGlass(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("glass");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->glass;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("glass")->isEmpty($data)) {
try {
return $this->getValueFromParent("glass");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set glass - coreshop.ui.product.metadata.glass
* @param string|null $glass
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setGlass(?string $glass)
{
$this->glass = $glass;
return $this;
}
/**
* Get formofcase - coreshop.ui.product.metadata.form_of_case
* @return string|null
*/
public function getFormofcase(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("formofcase");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->formofcase;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("formofcase")->isEmpty($data)) {
try {
return $this->getValueFromParent("formofcase");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set formofcase - coreshop.ui.product.metadata.form_of_case
* @param string|null $formofcase
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setFormofcase(?string $formofcase)
{
$this->formofcase = $formofcase;
return $this;
}
/**
* Get dial - coreshop.ui.product.metadata.dial
* @return string|null
*/
public function getDial(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("dial");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->dial;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("dial")->isEmpty($data)) {
try {
return $this->getValueFromParent("dial");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set dial - coreshop.ui.product.metadata.dial
* @param string|null $dial
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setDial(?string $dial)
{
$this->dial = $dial;
return $this;
}
/**
* Get colorofdial - coreshop.ui.product.metadata.color_of_dial
* @return string|null
*/
public function getColorofdial(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("colorofdial");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->colorofdial;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("colorofdial")->isEmpty($data)) {
try {
return $this->getValueFromParent("colorofdial");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set colorofdial - coreshop.ui.product.metadata.color_of_dial
* @param string|null $colorofdial
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setColorofdial(?string $colorofdial)
{
$this->colorofdial = $colorofdial;
return $this;
}
/**
* Get lumibrite - coreshop.ui.product.metadata.lumibrite
* @return string|null
*/
public function getLumibrite(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lumibrite");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lumibrite;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("lumibrite")->isEmpty($data)) {
try {
return $this->getValueFromParent("lumibrite");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lumibrite - coreshop.ui.product.metadata.lumibrite
* @param string|null $lumibrite
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setLumibrite(?string $lumibrite)
{
$this->lumibrite = $lumibrite;
return $this;
}
/**
* Get bezel - coreshop.ui.product.metadata.bezel
* @return string|null
*/
public function getBezel(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("bezel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->bezel;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("bezel")->isEmpty($data)) {
try {
return $this->getValueFromParent("bezel");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set bezel - coreshop.ui.product.metadata.bezel
* @param string|null $bezel
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBezel(?string $bezel)
{
$this->bezel = $bezel;
return $this;
}
/**
* Get crownandbutton - coreshop.ui.product.metadata.crown_and_button
* @return string|null
*/
public function getCrownandbutton(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("crownandbutton");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->crownandbutton;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("crownandbutton")->isEmpty($data)) {
try {
return $this->getValueFromParent("crownandbutton");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set crownandbutton - coreshop.ui.product.metadata.crown_and_button
* @param string|null $crownandbutton
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setCrownandbutton(?string $crownandbutton)
{
$this->crownandbutton = $crownandbutton;
return $this;
}
/**
* Get diamonds - coreshop.ui.product.metadata.diamonds
* @return string|null
*/
public function getDiamonds(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("diamonds");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->diamonds;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("diamonds")->isEmpty($data)) {
try {
return $this->getValueFromParent("diamonds");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set diamonds - coreshop.ui.product.metadata.diamonds
* @param string|null $diamonds
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setDiamonds(?string $diamonds)
{
$this->diamonds = $diamonds;
return $this;
}
/**
* Get size - coreshop.ui.product.metadata.size
* @return string|null
*/
public function getSize(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("size");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->size;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("size")->isEmpty($data)) {
try {
return $this->getValueFromParent("size");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set size - coreshop.ui.product.metadata.size
* @param string|null $size
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSize(?string $size)
{
$this->size = $size;
return $this;
}
/**
* Get size2 - coreshop.ui.product.metadata.size_2
* @return string|null
*/
public function getSize2(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("size2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->size2;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("size2")->isEmpty($data)) {
try {
return $this->getValueFromParent("size2");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set size2 - coreshop.ui.product.metadata.size_2
* @param string|null $size2
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSize2(?string $size2)
{
$this->size2 = $size2;
return $this;
}
/**
* Get size3 - coreshop.ui.product.metadata.size_3
* @return string|null
*/
public function getSize3(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("size3");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->size3;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("size3")->isEmpty($data)) {
try {
return $this->getValueFromParent("size3");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set size3 - coreshop.ui.product.metadata.size_3
* @param string|null $size3
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSize3(?string $size3)
{
$this->size3 = $size3;
return $this;
}
/**
* Get weight_ - coreshop.ui.product.metadata.weight
* @return string|null
*/
public function getWeight_(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("weight_");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->weight_;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("weight_")->isEmpty($data)) {
try {
return $this->getValueFromParent("weight_");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set weight_ - coreshop.ui.product.metadata.weight
* @param string|null $weight_
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setWeight_(?string $weight_)
{
$this->weight_ = $weight_;
return $this;
}
/**
* Get waterresistance - coreshop.ui.product.metadata.water_resistance
* @return string|null
*/
public function getWaterresistance(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("waterresistance");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->waterresistance;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("waterresistance")->isEmpty($data)) {
try {
return $this->getValueFromParent("waterresistance");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set waterresistance - coreshop.ui.product.metadata.water_resistance
* @param string|null $waterresistance
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setWaterresistance(?string $waterresistance)
{
$this->waterresistance = $waterresistance;
return $this;
}
/**
* Get other1 - coreshop.ui.product.metadata.other_1
* @return string|null
*/
public function getOther1(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("other1");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->other1;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("other1")->isEmpty($data)) {
try {
return $this->getValueFromParent("other1");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set other1 - coreshop.ui.product.metadata.other_1
* @param string|null $other1
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setOther1(?string $other1)
{
$this->other1 = $other1;
return $this;
}
/**
* Get other2 - coreshop.ui.product.metadata.other_2
* @return string|null
*/
public function getOther2(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("other2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->other2;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("other2")->isEmpty($data)) {
try {
return $this->getValueFromParent("other2");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set other2 - coreshop.ui.product.metadata.other_2
* @param string|null $other2
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setOther2(?string $other2)
{
$this->other2 = $other2;
return $this;
}
/**
* Get limited - coreshop.ui.product.metadata.limited
* @return string|null
*/
public function getLimited(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("limited");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->limited;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("limited")->isEmpty($data)) {
try {
return $this->getValueFromParent("limited");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set limited - coreshop.ui.product.metadata.limited
* @param string|null $limited
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setLimited(?string $limited)
{
$this->limited = $limited;
return $this;
}
/**
* Get year - coreshop.ui.product.metadata.year
* @return string|null
*/
public function getYear(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("year");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->year;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("year")->isEmpty($data)) {
try {
return $this->getValueFromParent("year");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set year - coreshop.ui.product.metadata.year
* @param string|null $year
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setYear(?string $year)
{
$this->year = $year;
return $this;
}
/**
* Get series - coreshop.ui.product.metadata.series
* @return string|null
*/
public function getSeries(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("series");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->series;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("series")->isEmpty($data)) {
try {
return $this->getValueFromParent("series");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set series - coreshop.ui.product.metadata.series
* @param string|null $series
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSeries(?string $series)
{
$this->series = $series;
return $this;
}
/**
* Get newsfromdate - coreshop.ui.product.metadata.news_from_date
* @return \Carbon\Carbon|null
*/
public function getNewsfromdate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("newsfromdate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->newsfromdate;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("newsfromdate")->isEmpty($data)) {
try {
return $this->getValueFromParent("newsfromdate");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set newsfromdate - coreshop.ui.product.metadata.news_from_date
* @param \Carbon\Carbon|null $newsfromdate
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setNewsfromdate(?\Carbon\Carbon $newsfromdate)
{
$this->newsfromdate = $newsfromdate;
return $this;
}
/**
* Get newstodate - coreshop.ui.product.metadata.news_to_date
* @return \Carbon\Carbon|null
*/
public function getNewstodate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("newstodate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->newstodate;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("newstodate")->isEmpty($data)) {
try {
return $this->getValueFromParent("newstodate");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set newstodate - coreshop.ui.product.metadata.news_to_date
* @param \Carbon\Carbon|null $newstodate
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setNewstodate(?\Carbon\Carbon $newstodate)
{
$this->newstodate = $newstodate;
return $this;
}
/**
* Get statusdetails - coreshop.ui.product.metadata.status_details
* @return string|null
*/
public function getStatusdetails(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("statusdetails");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->statusdetails;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("statusdetails")->isEmpty($data)) {
try {
return $this->getValueFromParent("statusdetails");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set statusdetails - coreshop.ui.product.metadata.status_details
* @param string|null $statusdetails
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setStatusdetails(?string $statusdetails)
{
$this->statusdetails = $statusdetails;
return $this;
}
/**
* Get group - coreshop.ui.product.metadata.group
* @return string|null
*/
public function getGroup(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("group");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->group;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("group")->isEmpty($data)) {
try {
return $this->getValueFromParent("group");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set group - coreshop.ui.product.metadata.group
* @param string|null $group
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setGroup(?string $group)
{
$this->group = $group;
return $this;
}
/**
* Get bandfilter - Tok szűrő
* @return string|null
*/
public function getBandfilter(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("bandfilter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->bandfilter;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("bandfilter")->isEmpty($data)) {
try {
return $this->getValueFromParent("bandfilter");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set bandfilter - Tok szűrő
* @param string|null $bandfilter
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setBandfilter(?string $bandfilter)
{
$this->bandfilter = $bandfilter;
return $this;
}
/**
* Get casefilter - SzÃj szűrÅ‘
* @return string|null
*/
public function getCasefilter(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("casefilter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->casefilter;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("casefilter")->isEmpty($data)) {
try {
return $this->getValueFromParent("casefilter");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set casefilter - SzÃj szűrÅ‘
* @param string|null $casefilter
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setCasefilter(?string $casefilter)
{
$this->casefilter = $casefilter;
return $this;
}
/**
* Get movementtypefilter - Szerkezet szűrő
* @return string|null
*/
public function getMovementtypefilter(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("movementtypefilter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->movementtypefilter;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("movementtypefilter")->isEmpty($data)) {
try {
return $this->getValueFromParent("movementtypefilter");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set movementtypefilter - Szerkezet szűrő
* @param string|null $movementtypefilter
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setMovementtypefilter(?string $movementtypefilter)
{
$this->movementtypefilter = $movementtypefilter;
return $this;
}
/**
* Get glassfilter - Üveg szűrő
* @return string|null
*/
public function getGlassfilter(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("glassfilter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->glassfilter;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("glassfilter")->isEmpty($data)) {
try {
return $this->getValueFromParent("glassfilter");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set glassfilter - Üveg szűrő
* @param string|null $glassfilter
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setGlassfilter(?string $glassfilter)
{
$this->glassfilter = $glassfilter;
return $this;
}
/**
* Get diamondsfilter - Ékkő szűrő
* @return string|null
*/
public function getDiamondsfilter(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("diamondsfilter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->diamondsfilter;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("diamondsfilter")->isEmpty($data)) {
try {
return $this->getValueFromParent("diamondsfilter");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set diamondsfilter - Ékkő szűrő
* @param string|null $diamondsfilter
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setDiamondsfilter(?string $diamondsfilter)
{
$this->diamondsfilter = $diamondsfilter;
return $this;
}
/**
* Get mainVariant - Main Variant
* @return ?\Pimcore\Model\DataObject\Concrete
*/
public function getMainVariant(): ?\Pimcore\Model\DataObject\Concrete
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("mainVariant");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("mainVariant")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("mainVariant")->isEmpty($data)) {
try {
return $this->getValueFromParent("mainVariant");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set mainVariant - Main Variant
* @param ?\Pimcore\Model\DataObject\Concrete $mainVariant
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setMainVariant(?\Pimcore\Model\DataObject\Concrete $mainVariant)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
$fd = $this->getClass()->getFieldDefinition("mainVariant");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getMainVariant();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $mainVariant);
if (!$isEqual) {
$this->markFieldDirty("mainVariant", true);
}
$this->mainVariant = $fd->preSetData($this, $mainVariant);
return $this;
}
/**
* Get allowedAttributeGroups - coreshop.product.allowed_attribute_groups
* @return ?\CoreShop\Component\Variant\Model\AttributeGroupInterface[]
*/
public function getAllowedAttributeGroups(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("allowedAttributeGroups");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("allowedAttributeGroups")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("allowedAttributeGroups")->isEmpty($data)) {
try {
return $this->getValueFromParent("allowedAttributeGroups");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set allowedAttributeGroups - coreshop.product.allowed_attribute_groups
* @param ?\CoreShop\Component\Variant\Model\AttributeGroupInterface[] $allowedAttributeGroups
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setAllowedAttributeGroups(?array $allowedAttributeGroups)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
$fd = $this->getClass()->getFieldDefinition("allowedAttributeGroups");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAllowedAttributeGroups();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $allowedAttributeGroups);
if (!$isEqual) {
$this->markFieldDirty("allowedAttributeGroups", true);
}
$this->allowedAttributeGroups = $fd->preSetData($this, $allowedAttributeGroups);
return $this;
}
/**
* Get attributes - coreshop.product.attributes
* @return ?\CoreShop\Component\Variant\Model\AttributeInterface[]
*/
public function getAttributes(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("attributes");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("attributes")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("attributes")->isEmpty($data)) {
try {
return $this->getValueFromParent("attributes");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set attributes - coreshop.product.attributes
* @param ?\CoreShop\Component\Variant\Model\AttributeInterface[] $attributes
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setAttributes(?array $attributes)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
$fd = $this->getClass()->getFieldDefinition("attributes");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAttributes();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $attributes);
if (!$isEqual) {
$this->markFieldDirty("attributes", true);
}
$this->attributes = $fd->preSetData($this, $attributes);
return $this;
}
/**
* Get categories - coreshop.product.categories
* @return ?\CoreShop\Component\Product\Model\CategoryInterface[]
*/
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 (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("categories")->isEmpty($data)) {
try {
return $this->getValueFromParent("categories");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categories - coreshop.product.categories
* @param ?\CoreShop\Component\Product\Model\CategoryInterface[] $categories
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setCategories(?array $categories)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
$fd = $this->getClass()->getFieldDefinition("categories");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategories();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $categories);
if (!$isEqual) {
$this->markFieldDirty("categories", true);
}
$this->categories = $fd->preSetData($this, $categories);
return $this;
}
/**
* Get images - coreshop.product.images
* @return \Pimcore\Model\Asset\Image[] | \Pimcore\Model\DataObject\ExternalMedia[]
*/
public function getImages(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("images");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("images")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("images")->isEmpty($data)) {
try {
return $this->getValueFromParent("images");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set images - coreshop.product.images
* @param \Pimcore\Model\Asset\Image[] | \Pimcore\Model\DataObject\ExternalMedia[] $images
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setImages(?array $images)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("images");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getImages();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $images);
if (!$isEqual) {
$this->markFieldDirty("images", true);
}
$this->images = $fd->preSetData($this, $images);
return $this;
}
/**
* Get videos - Videók
* @return \Pimcore\Model\DataObject\ExternalMedia[]
*/
public function getVideos(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("videos");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("videos")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("videos")->isEmpty($data)) {
try {
return $this->getValueFromParent("videos");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set videos - Videók
* @param \Pimcore\Model\DataObject\ExternalMedia[] $videos
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setVideos(?array $videos)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("videos");
$inheritValues = self::getGetInheritedValues();
self::setGetInheritedValues(false);
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getVideos();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
self::setGetInheritedValues($inheritValues);
$isEqual = $fd->isEqual($currentData, $videos);
if (!$isEqual) {
$this->markFieldDirty("videos", true);
}
$this->videos = $fd->preSetData($this, $videos);
return $this;
}
/**
* Get onHold - coreshop.product.on_hold
* @return int|null
*/
public function getOnHold(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("onHold");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->onHold;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("onHold")->isEmpty($data)) {
try {
return $this->getValueFromParent("onHold");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set onHold - coreshop.product.on_hold
* @param int|null $onHold
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setOnHold(?int $onHold)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("onHold");
$this->onHold = $fd->preSetData($this, $onHold);
return $this;
}
/**
* Get onHand - coreshop.product.on_hand
* @return int|null
*/
public function getOnHand(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("onHand");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->onHand;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("onHand")->isEmpty($data)) {
try {
return $this->getValueFromParent("onHand");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set onHand - coreshop.product.on_hand
* @param int|null $onHand
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setOnHand(?int $onHand)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("onHand");
$this->onHand = $fd->preSetData($this, $onHand);
return $this;
}
/**
* Get isTracked - coreshop.product.is_tracked
* @return bool|null
*/
public function getIsTracked(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isTracked");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isTracked;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("isTracked")->isEmpty($data)) {
try {
return $this->getValueFromParent("isTracked");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isTracked - coreshop.product.is_tracked
* @param bool|null $isTracked
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setIsTracked(?bool $isTracked)
{
$this->isTracked = $isTracked;
return $this;
}
/**
* Get minimumQuantityToOrder - coreshop.product.minimum_quantity_to_order
* @return int|null
*/
public function getMinimumQuantityToOrder(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("minimumQuantityToOrder");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->minimumQuantityToOrder;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("minimumQuantityToOrder")->isEmpty($data)) {
try {
return $this->getValueFromParent("minimumQuantityToOrder");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set minimumQuantityToOrder - coreshop.product.minimum_quantity_to_order
* @param int|null $minimumQuantityToOrder
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setMinimumQuantityToOrder(?int $minimumQuantityToOrder)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("minimumQuantityToOrder");
$this->minimumQuantityToOrder = $fd->preSetData($this, $minimumQuantityToOrder);
return $this;
}
/**
* Get maximumQuantityToOrder - coreshop.product.maximal_quantity_to_order
* @return int|null
*/
public function getMaximumQuantityToOrder(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("maximumQuantityToOrder");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->maximumQuantityToOrder;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("maximumQuantityToOrder")->isEmpty($data)) {
try {
return $this->getValueFromParent("maximumQuantityToOrder");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set maximumQuantityToOrder - coreshop.product.maximal_quantity_to_order
* @param int|null $maximumQuantityToOrder
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setMaximumQuantityToOrder(?int $maximumQuantityToOrder)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("maximumQuantityToOrder");
$this->maximumQuantityToOrder = $fd->preSetData($this, $maximumQuantityToOrder);
return $this;
}
/**
* Get unitDefinitions - coreshop.product.unit_definitions
* @return ?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface
*/
public function getUnitDefinitions(): ?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("unitDefinitions");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("unitDefinitions")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("unitDefinitions")->isEmpty($data)) {
try {
return $this->getValueFromParent("unitDefinitions");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set unitDefinitions - coreshop.product.unit_definitions
* @param ?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface $unitDefinitions
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setUnitDefinitions(?\CoreShop\Component\Product\Model\ProductUnitDefinitionsInterface $unitDefinitions)
{
/** @var \CoreShop\Bundle\ProductBundle\CoreExtension\ProductUnitDefinitions $fd */
$fd = $this->getClass()->getFieldDefinition("unitDefinitions");
$this->unitDefinitions = $fd->preSetData($this, $unitDefinitions);
return $this;
}
/**
* Get storeValues - coreshop.product.store_values
*
* @param \CoreShop\Component\Store\Model\StoreInterface $store
*
* @return null|\CoreShop\Component\Core\Model\ProductStoreValuesInterface
*/
public function getStoreValuesForStore (\CoreShop\Component\Store\Model\StoreInterface $store): ?\CoreShop\Component\Core\Model\ProductStoreValuesInterface {
$this->storeValues = $this->getClass()->getFieldDefinition("storeValues")->preGetData($this);
$data = $this->storeValues;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("storeValues")->isEmpty($data)) {
try {
return $this->getValueFromParent("storeValuesForStore", $store);
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if (is_array($data)) {
/** @var \CoreShop\Component\Core\Model\ProductStoreValuesInterface $storeValuesBlock */
foreach ($data as $storeValuesBlock) {
if ($storeValuesBlock->getStore()->getId() === $store->getId()) {
return $storeValuesBlock;
}
}
}
return null;
}
/**
* Get All storeValues - coreshop.product.store_values
* @return \CoreShop\Component\Core\Model\ProductStoreValuesInterface[]
*/
public function getStoreValues (): array {
$this->storeValues = $this->getClass()->getFieldDefinition("storeValues")->preGetData($this);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("storeValues");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("storeValues")->preGetData($this);
return $data;
}
/**
* Get storeValues - coreshop.product.store_values
*
* @param string $type
* @param \CoreShop\Component\Store\Model\StoreInterface $store
*
* @return mixed
*/
public function getStoreValuesOfType (string $type, \CoreShop\Component\Store\Model\StoreInterface $store) {
$storeValue = $this->getStoreValuesForStore($store);
if ($storeValue instanceof \CoreShop\Component\Core\Model\ProductStoreValuesInterface) {
$getter = sprintf('get%s', ucfirst($type));
if (method_exists($storeValue, $getter)) {
return $storeValue->$getter();
}
}
return null;
}
/**
* Set storeValues - coreshop.product.store_values
*
* @param \CoreShop\Component\Core\Model\ProductStoreValuesInterface $storeValues
* @param \CoreShop\Component\Store\Model\StoreInterface $store
*
* @return static
*/
public function setStoreValuesForStore(\CoreShop\Component\Core\Model\ProductStoreValuesInterface $storeValues, \CoreShop\Component\Store\Model\StoreInterface $store): self {
$this->storeValues[$store->getId()] = $storeValues;
$this->storeValues = $this->getClass()->getFieldDefinition("storeValues")->preSetData($this, $this->storeValues);
return $this;
}
/**
* Set All storeValues - coreshop.product.store_values
*
* @param \CoreShop\Component\Core\Model\ProductStoreValuesInterface[] $storeValues
*
* @return static
*/
public function setStoreValues (array $storeValues): self {
$this->storeValues = $storeValues;
$this->storeValues = $this->getClass()->getFieldDefinition("storeValues")->preSetData($this, $this->storeValues);
return $this;
}
/**
* Set storeValues - coreshop.product.store_values
*
* @param string $type
* @param mixed $value
* @param \CoreShop\Component\Store\Model\StoreInterface $store
*
* @return static
*/
public function setStoreValuesOfType (string $type, $value, \CoreShop\Component\Store\Model\StoreInterface $store): self {
$storeValue = \CoreShop\Component\Pimcore\DataObject\InheritanceHelper::useInheritedValues(function() use ($store) {
return $this->getStoreValuesForStore($store);
}, false);
if (!$storeValue instanceof \CoreShop\Component\Core\Model\ProductStoreValuesInterface) {
$storeValue = $this->getClass()->getFieldDefinition("storeValues")->createNew($this, $store);
}
$setter = sprintf('set%s', ucfirst($type));
if (method_exists($storeValue, $setter)) {
$storeValue->$setter($value);
}
$this->setStoreValuesForStore($storeValue, $store);
return $this;
}
/**
* Get itemQuantityFactor - coreshop.product.item_quantity_factor
* @return int|null
*/
public function getItemQuantityFactor(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("itemQuantityFactor");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->itemQuantityFactor;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("itemQuantityFactor")->isEmpty($data)) {
try {
return $this->getValueFromParent("itemQuantityFactor");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set itemQuantityFactor - coreshop.product.item_quantity_factor
* @param int|null $itemQuantityFactor
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setItemQuantityFactor(?int $itemQuantityFactor)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("itemQuantityFactor");
$this->itemQuantityFactor = $fd->preSetData($this, $itemQuantityFactor);
return $this;
}
/**
* Get wholesalePrice - coreshop.product.wholesale_price
* @return int
*/
public function getWholesalePrice (): int {
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("wholesalePrice");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("wholesalePrice")->preGetData($this);
if(\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("wholesalePrice")->isEmpty($data)) {
try {
return $this->getValueFromParent("wholesalePrice");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set wholesalePrice - coreshop.product.wholesale_price
* @param int $wholesalePrice
* @return \Pimcore\Model\DataObject\FieldCollection\Data\CoreShopProduct
*/
public function setWholesalePrice (int $wholesalePrice) {
$fd = $this->getClass()->getFieldDefinition("wholesalePrice");
$this->wholesalePrice = $wholesalePrice;
return $this;
}
/**
* Get wholesaleBuyingPrice - coreshop.product.wholesale_buying_price
* @return ?\CoreShop\Component\Currency\Model\Money
*/
public function getWholesaleBuyingPrice(): ?\CoreShop\Component\Currency\Model\Money
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("wholesaleBuyingPrice");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("wholesaleBuyingPrice")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("wholesaleBuyingPrice")->isEmpty($data)) {
try {
return $this->getValueFromParent("wholesaleBuyingPrice");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set wholesaleBuyingPrice - coreshop.product.wholesale_buying_price
* @param ?\CoreShop\Component\Currency\Model\Money $wholesaleBuyingPrice
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setWholesaleBuyingPrice(?\CoreShop\Component\Currency\Model\Money $wholesaleBuyingPrice)
{
$this->wholesaleBuyingPrice = $wholesaleBuyingPrice;
return $this;
}
/**
* Get taxRule - coreshop.product.tax_rule
* @return null|\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface
*/
public function getTaxRule(): ?\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("taxRule");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("taxRule")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("taxRule")->isEmpty($data)) {
try {
return $this->getValueFromParent("taxRule");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set taxRule - coreshop.product.tax_rule
* @param null|\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface $taxRule
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setTaxRule(?\CoreShop\Component\Taxation\Model\TaxRuleGroupInterface $taxRule)
{
/** @var \CoreShop\Bundle\TaxationBundle\CoreExtension\TaxRuleGroup $fd */
$fd = $this->getClass()->getFieldDefinition("taxRule");
$this->taxRule = $fd->preSetData($this, $taxRule);
return $this;
}
/**
* Get outlet - Outlet
* @return bool|null
*/
public function getOutlet(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("outlet");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->outlet;
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("outlet")->isEmpty($data)) {
try {
return $this->getValueFromParent("outlet");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set outlet - Outlet
* @param bool|null $outlet
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setOutlet(?bool $outlet)
{
$this->outlet = $outlet;
return $this;
}
/**
* Get specificPriceRules - coreshop.product.product_specific_price_rules
* @return array
*/
public function getSpecificPriceRules(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("specificPriceRules");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("specificPriceRules")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("specificPriceRules")->isEmpty($data)) {
try {
return $this->getValueFromParent("specificPriceRules");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set specificPriceRules - coreshop.product.product_specific_price_rules
* @param array $specificPriceRules
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setSpecificPriceRules(array $specificPriceRules)
{
/** @var \CoreShop\Bundle\ProductBundle\CoreExtension\ProductSpecificPriceRules $fd */
$fd = $this->getClass()->getFieldDefinition("specificPriceRules");
$this->specificPriceRules = $fd->preSetData($this, $specificPriceRules);
return $this;
}
/**
* Get quantityPriceRules - coreshop.product.quantity_price_rules
* @return array
*/
public function getQuantityPriceRules(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("quantityPriceRules");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("quantityPriceRules")->preGetData($this);
if (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("quantityPriceRules")->isEmpty($data)) {
try {
return $this->getValueFromParent("quantityPriceRules");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set quantityPriceRules - coreshop.product.quantity_price_rules
* @param array $quantityPriceRules
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
public function setQuantityPriceRules(array $quantityPriceRules)
{
/** @var \CoreShop\Bundle\ProductQuantityPriceRulesBundle\CoreExtension\ProductQuantityPriceRules $fd */
$fd = $this->getClass()->getFieldDefinition("quantityPriceRules");
$this->quantityPriceRules = $fd->preSetData($this, $quantityPriceRules);
return $this;
}
/**
* Get weight - coreshop.product.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 (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("weight")->isEmpty($data)) {
try {
return $this->getValueFromParent("weight");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set weight - coreshop.product.weight
* @param float|null $weight
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
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 height - coreshop.product.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 (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("height")->isEmpty($data)) {
try {
return $this->getValueFromParent("height");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set height - coreshop.product.height
* @param float|null $height
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
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 width - coreshop.product.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 (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("width")->isEmpty($data)) {
try {
return $this->getValueFromParent("width");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set width - coreshop.product.width
* @param float|null $width
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
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 depth - coreshop.product.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 (\Pimcore\Model\DataObject::doGetInheritedValues() && $this->getClass()->getFieldDefinition("depth")->isEmpty($data)) {
try {
return $this->getValueFromParent("depth");
} catch (InheritanceParentNotFoundException $e) {
// no data from parent available, continue ...
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set depth - coreshop.product.depth
* @param float|null $depth
* @return \Pimcore\Model\DataObject\CoreShopProduct
*/
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;
}
}