var/classes/DataObject/Region.php line 51

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - legacyId [input]
  8.  * - isMainRegion [checkbox]
  9.  * - isLive [checkbox]
  10.  * - name [input]
  11.  * - localizedfields [localizedfields]
  12.  * -- nameLocalized [input]
  13.  * - siteConfig [manyToOneRelation]
  14.  * - sorting [numeric]
  15.  * - contactEmail [input]
  16.  * - contactObject [manyToOneRelation]
  17.  * - pressContactObject [manyToOneRelation]
  18.  * - weatherStation [manyToOneRelation]
  19.  * - weatherLiveStation [manyToOneRelation]
  20.  * - oldPath [input]
  21.  * - demiFilterObject [manyToOneRelation]
  22.  * - alpsteinRegions [manyToManyObjectRelation]
  23.  */
  24. namespace Pimcore\Model\DataObject;
  25. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  26. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  27. /**
  28. * @method static \Pimcore\Model\DataObject\Region\Listing getList(array $config = [])
  29. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByLegacyId($value, $limit = 0, $offset = 0, $objectTypes = null)
  30. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByIsMainRegion($value, $limit = 0, $offset = 0, $objectTypes = null)
  31. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByIsLive($value, $limit = 0, $offset = 0, $objectTypes = null)
  32. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
  33. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  34. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByNameLocalized($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  35. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getBySiteConfig($value, $limit = 0, $offset = 0, $objectTypes = null)
  36. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getBySorting($value, $limit = 0, $offset = 0, $objectTypes = null)
  37. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByContactEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
  38. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByContactObject($value, $limit = 0, $offset = 0, $objectTypes = null)
  39. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByPressContactObject($value, $limit = 0, $offset = 0, $objectTypes = null)
  40. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByWeatherStation($value, $limit = 0, $offset = 0, $objectTypes = null)
  41. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByWeatherLiveStation($value, $limit = 0, $offset = 0, $objectTypes = null)
  42. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByOldPath($value, $limit = 0, $offset = 0, $objectTypes = null)
  43. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByDemiFilterObject($value, $limit = 0, $offset = 0, $objectTypes = null)
  44. * @method static \Pimcore\Model\DataObject\Region\Listing|\Pimcore\Model\DataObject\Region|null getByAlpsteinRegions($value, $limit = 0, $offset = 0, $objectTypes = null)
  45. */
  46. class Region extends Concrete
  47. {
  48. protected $o_classId "Region";
  49. protected $o_className "Region";
  50. protected $legacyId;
  51. protected $isMainRegion;
  52. protected $isLive;
  53. protected $name;
  54. protected $localizedfields;
  55. protected $siteConfig;
  56. protected $sorting;
  57. protected $contactEmail;
  58. protected $contactObject;
  59. protected $pressContactObject;
  60. protected $weatherStation;
  61. protected $weatherLiveStation;
  62. protected $oldPath;
  63. protected $demiFilterObject;
  64. protected $alpsteinRegions;
  65. /**
  66. * @param array $values
  67. * @return \Pimcore\Model\DataObject\Region
  68. */
  69. public static function create($values = array()) {
  70.     $object = new static();
  71.     $object->setValues($values);
  72.     return $object;
  73. }
  74. /**
  75. * Get legacyId - Legacy ID
  76. * @return string|null
  77. */
  78. public function getLegacyId()
  79. {
  80.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  81.         $preValue $this->preGetValue("legacyId");
  82.         if ($preValue !== null) {
  83.             return $preValue;
  84.         }
  85.     }
  86.     $data $this->legacyId;
  87.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  88.         return $data->getPlain();
  89.     }
  90.     return $data;
  91. }
  92. /**
  93. * Set legacyId - Legacy ID
  94. * @param string|null $legacyId
  95. * @return \Pimcore\Model\DataObject\Region
  96. */
  97. public function setLegacyId($legacyId)
  98. {
  99.     $this->legacyId $legacyId;
  100.     return $this;
  101. }
  102. /**
  103. * Get isMainRegion - is Main Region
  104. * @return bool|null
  105. */
  106. public function getIsMainRegion()
  107. {
  108.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  109.         $preValue $this->preGetValue("isMainRegion");
  110.         if ($preValue !== null) {
  111.             return $preValue;
  112.         }
  113.     }
  114.     $data $this->isMainRegion;
  115.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  116.         return $data->getPlain();
  117.     }
  118.     return $data;
  119. }
  120. /**
  121. * Set isMainRegion - is Main Region
  122. * @param bool|null $isMainRegion
  123. * @return \Pimcore\Model\DataObject\Region
  124. */
  125. public function setIsMainRegion($isMainRegion)
  126. {
  127.     $this->isMainRegion $isMainRegion;
  128.     return $this;
  129. }
  130. /**
  131. * Get isLive - is Live
  132. * @return bool|null
  133. */
  134. public function getIsLive()
  135. {
  136.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  137.         $preValue $this->preGetValue("isLive");
  138.         if ($preValue !== null) {
  139.             return $preValue;
  140.         }
  141.     }
  142.     $data $this->isLive;
  143.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  144.         return $data->getPlain();
  145.     }
  146.     return $data;
  147. }
  148. /**
  149. * Set isLive - is Live
  150. * @param bool|null $isLive
  151. * @return \Pimcore\Model\DataObject\Region
  152. */
  153. public function setIsLive($isLive)
  154. {
  155.     $this->isLive $isLive;
  156.     return $this;
  157. }
  158. /**
  159. * Get name - Name
  160. * @return string|null
  161. */
  162. public function getName()
  163. {
  164.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  165.         $preValue $this->preGetValue("name");
  166.         if ($preValue !== null) {
  167.             return $preValue;
  168.         }
  169.     }
  170.     $data $this->name;
  171.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  172.         return $data->getPlain();
  173.     }
  174.     return $data;
  175. }
  176. /**
  177. * Set name - Name
  178. * @param string|null $name
  179. * @return \Pimcore\Model\DataObject\Region
  180. */
  181. public function setName($name)
  182. {
  183.     $this->name $name;
  184.     return $this;
  185. }
  186. /**
  187. * Get localizedfields - 
  188. * @return \Pimcore\Model\DataObject\Localizedfield|null
  189. */
  190. public function getLocalizedfields()
  191. {
  192.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  193.         $preValue $this->preGetValue("localizedfields");
  194.         if ($preValue !== null) {
  195.             return $preValue;
  196.         }
  197.     }
  198.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  199.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  200.         return $data->getPlain();
  201.     }
  202.     return $data;
  203. }
  204. /**
  205. * Get nameLocalized - Lokalisierter Name
  206. * @return string|null
  207. */
  208. public function getNameLocalized($language null)
  209. {
  210.     $data $this->getLocalizedfields()->getLocalizedValue("nameLocalized"$language);
  211.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  212.         $preValue $this->preGetValue("nameLocalized");
  213.         if ($preValue !== null) {
  214.             return $preValue;
  215.         }
  216.     }
  217.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  218.         return $data->getPlain();
  219.     }
  220.     return $data;
  221. }
  222. /**
  223. * Set localizedfields - 
  224. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  225. * @return \Pimcore\Model\DataObject\Region
  226. */
  227. public function setLocalizedfields($localizedfields)
  228. {
  229.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  230.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  231.     $currentData $this->getLocalizedfields();
  232.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  233.     $this->markFieldDirty("localizedfields"true);
  234.     $this->localizedfields $localizedfields;
  235.     return $this;
  236. }
  237. /**
  238. * Set nameLocalized - Lokalisierter Name
  239. * @param string|null $nameLocalized
  240. * @return \Pimcore\Model\DataObject\Region
  241. */
  242. public function setNameLocalized ($nameLocalized$language null)
  243. {
  244.     $isEqual false;
  245.     $this->getLocalizedfields()->setLocalizedValue("nameLocalized"$nameLocalized$language, !$isEqual);
  246.     return $this;
  247. }
  248. /**
  249. * Get siteConfig - SiteConfig
  250. * @return \Pimcore\Model\DataObject\SiteConfig|null
  251. */
  252. public function getSiteConfig()
  253. {
  254.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  255.         $preValue $this->preGetValue("siteConfig");
  256.         if ($preValue !== null) {
  257.             return $preValue;
  258.         }
  259.     }
  260.     $data $this->getClass()->getFieldDefinition("siteConfig")->preGetData($this);
  261.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  262.         return $data->getPlain();
  263.     }
  264.     return $data;
  265. }
  266. /**
  267. * Set siteConfig - SiteConfig
  268. * @param \Pimcore\Model\DataObject\SiteConfig $siteConfig
  269. * @return \Pimcore\Model\DataObject\Region
  270. */
  271. public function setSiteConfig($siteConfig)
  272. {
  273.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  274.     $fd $this->getClass()->getFieldDefinition("siteConfig");
  275.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  276.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  277.     $currentData $this->getSiteConfig();
  278.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  279.     $isEqual $fd->isEqual($currentData$siteConfig);
  280.     if (!$isEqual) {
  281.         $this->markFieldDirty("siteConfig"true);
  282.     }
  283.     $this->siteConfig $fd->preSetData($this$siteConfig);
  284.     return $this;
  285. }
  286. /**
  287. * Get sorting - Sorting
  288. * @return float|null
  289. */
  290. public function getSorting()
  291. {
  292.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  293.         $preValue $this->preGetValue("sorting");
  294.         if ($preValue !== null) {
  295.             return $preValue;
  296.         }
  297.     }
  298.     $data $this->sorting;
  299.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  300.         return $data->getPlain();
  301.     }
  302.     return $data;
  303. }
  304. /**
  305. * Set sorting - Sorting
  306. * @param float|null $sorting
  307. * @return \Pimcore\Model\DataObject\Region
  308. */
  309. public function setSorting($sorting)
  310. {
  311.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  312.     $fd $this->getClass()->getFieldDefinition("sorting");
  313.     $this->sorting $fd->preSetData($this$sorting);
  314.     return $this;
  315. }
  316. /**
  317. * Get contactEmail - Contact Email
  318. * @return string|null
  319. */
  320. public function getContactEmail()
  321. {
  322.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  323.         $preValue $this->preGetValue("contactEmail");
  324.         if ($preValue !== null) {
  325.             return $preValue;
  326.         }
  327.     }
  328.     $data $this->contactEmail;
  329.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  330.         return $data->getPlain();
  331.     }
  332.     return $data;
  333. }
  334. /**
  335. * Set contactEmail - Contact Email
  336. * @param string|null $contactEmail
  337. * @return \Pimcore\Model\DataObject\Region
  338. */
  339. public function setContactEmail($contactEmail)
  340. {
  341.     $this->contactEmail $contactEmail;
  342.     return $this;
  343. }
  344. /**
  345. * Get contactObject - Contact
  346. * @return \Pimcore\Model\DataObject\Contact|null
  347. */
  348. public function getContactObject()
  349. {
  350.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  351.         $preValue $this->preGetValue("contactObject");
  352.         if ($preValue !== null) {
  353.             return $preValue;
  354.         }
  355.     }
  356.     $data $this->getClass()->getFieldDefinition("contactObject")->preGetData($this);
  357.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  358.         return $data->getPlain();
  359.     }
  360.     return $data;
  361. }
  362. /**
  363. * Set contactObject - Contact
  364. * @param \Pimcore\Model\DataObject\Contact $contactObject
  365. * @return \Pimcore\Model\DataObject\Region
  366. */
  367. public function setContactObject($contactObject)
  368. {
  369.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  370.     $fd $this->getClass()->getFieldDefinition("contactObject");
  371.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  372.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  373.     $currentData $this->getContactObject();
  374.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  375.     $isEqual $fd->isEqual($currentData$contactObject);
  376.     if (!$isEqual) {
  377.         $this->markFieldDirty("contactObject"true);
  378.     }
  379.     $this->contactObject $fd->preSetData($this$contactObject);
  380.     return $this;
  381. }
  382. /**
  383. * Get pressContactObject - Press Contact
  384. * @return \Pimcore\Model\DataObject\Contact|null
  385. */
  386. public function getPressContactObject()
  387. {
  388.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  389.         $preValue $this->preGetValue("pressContactObject");
  390.         if ($preValue !== null) {
  391.             return $preValue;
  392.         }
  393.     }
  394.     $data $this->getClass()->getFieldDefinition("pressContactObject")->preGetData($this);
  395.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  396.         return $data->getPlain();
  397.     }
  398.     return $data;
  399. }
  400. /**
  401. * Set pressContactObject - Press Contact
  402. * @param \Pimcore\Model\DataObject\Contact $pressContactObject
  403. * @return \Pimcore\Model\DataObject\Region
  404. */
  405. public function setPressContactObject($pressContactObject)
  406. {
  407.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  408.     $fd $this->getClass()->getFieldDefinition("pressContactObject");
  409.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  410.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  411.     $currentData $this->getPressContactObject();
  412.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  413.     $isEqual $fd->isEqual($currentData$pressContactObject);
  414.     if (!$isEqual) {
  415.         $this->markFieldDirty("pressContactObject"true);
  416.     }
  417.     $this->pressContactObject $fd->preSetData($this$pressContactObject);
  418.     return $this;
  419. }
  420. /**
  421. * Get weatherStation - Weather Station
  422. * @return \Pimcore\Model\DataObject\WeatherStation|null
  423. */
  424. public function getWeatherStation()
  425. {
  426.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  427.         $preValue $this->preGetValue("weatherStation");
  428.         if ($preValue !== null) {
  429.             return $preValue;
  430.         }
  431.     }
  432.     $data $this->getClass()->getFieldDefinition("weatherStation")->preGetData($this);
  433.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  434.         return $data->getPlain();
  435.     }
  436.     return $data;
  437. }
  438. /**
  439. * Set weatherStation - Weather Station
  440. * @param \Pimcore\Model\DataObject\WeatherStation $weatherStation
  441. * @return \Pimcore\Model\DataObject\Region
  442. */
  443. public function setWeatherStation($weatherStation)
  444. {
  445.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  446.     $fd $this->getClass()->getFieldDefinition("weatherStation");
  447.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  448.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  449.     $currentData $this->getWeatherStation();
  450.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  451.     $isEqual $fd->isEqual($currentData$weatherStation);
  452.     if (!$isEqual) {
  453.         $this->markFieldDirty("weatherStation"true);
  454.     }
  455.     $this->weatherStation $fd->preSetData($this$weatherStation);
  456.     return $this;
  457. }
  458. /**
  459. * Get weatherLiveStation - Weather Live Station
  460. * @return \Pimcore\Model\DataObject\WeatherLiveStation|null
  461. */
  462. public function getWeatherLiveStation()
  463. {
  464.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  465.         $preValue $this->preGetValue("weatherLiveStation");
  466.         if ($preValue !== null) {
  467.             return $preValue;
  468.         }
  469.     }
  470.     $data $this->getClass()->getFieldDefinition("weatherLiveStation")->preGetData($this);
  471.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  472.         return $data->getPlain();
  473.     }
  474.     return $data;
  475. }
  476. /**
  477. * Set weatherLiveStation - Weather Live Station
  478. * @param \Pimcore\Model\DataObject\WeatherLiveStation $weatherLiveStation
  479. * @return \Pimcore\Model\DataObject\Region
  480. */
  481. public function setWeatherLiveStation($weatherLiveStation)
  482. {
  483.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  484.     $fd $this->getClass()->getFieldDefinition("weatherLiveStation");
  485.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  486.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  487.     $currentData $this->getWeatherLiveStation();
  488.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  489.     $isEqual $fd->isEqual($currentData$weatherLiveStation);
  490.     if (!$isEqual) {
  491.         $this->markFieldDirty("weatherLiveStation"true);
  492.     }
  493.     $this->weatherLiveStation $fd->preSetData($this$weatherLiveStation);
  494.     return $this;
  495. }
  496. /**
  497. * Get oldPath - oldPath
  498. * @return string|null
  499. */
  500. public function getOldPath()
  501. {
  502.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  503.         $preValue $this->preGetValue("oldPath");
  504.         if ($preValue !== null) {
  505.             return $preValue;
  506.         }
  507.     }
  508.     $data $this->oldPath;
  509.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  510.         return $data->getPlain();
  511.     }
  512.     return $data;
  513. }
  514. /**
  515. * Set oldPath - oldPath
  516. * @param string|null $oldPath
  517. * @return \Pimcore\Model\DataObject\Region
  518. */
  519. public function setOldPath($oldPath)
  520. {
  521.     $this->oldPath $oldPath;
  522.     return $this;
  523. }
  524. /**
  525. * Get demiFilterObject - Demi FilterObject
  526. * @return \Pimcore\Model\DataObject\DemiFilterObject|null
  527. */
  528. public function getDemiFilterObject()
  529. {
  530.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  531.         $preValue $this->preGetValue("demiFilterObject");
  532.         if ($preValue !== null) {
  533.             return $preValue;
  534.         }
  535.     }
  536.     $data $this->getClass()->getFieldDefinition("demiFilterObject")->preGetData($this);
  537.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  538.         return $data->getPlain();
  539.     }
  540.     return $data;
  541. }
  542. /**
  543. * Set demiFilterObject - Demi FilterObject
  544. * @param \Pimcore\Model\DataObject\DemiFilterObject $demiFilterObject
  545. * @return \Pimcore\Model\DataObject\Region
  546. */
  547. public function setDemiFilterObject($demiFilterObject)
  548. {
  549.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  550.     $fd $this->getClass()->getFieldDefinition("demiFilterObject");
  551.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  552.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  553.     $currentData $this->getDemiFilterObject();
  554.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  555.     $isEqual $fd->isEqual($currentData$demiFilterObject);
  556.     if (!$isEqual) {
  557.         $this->markFieldDirty("demiFilterObject"true);
  558.     }
  559.     $this->demiFilterObject $fd->preSetData($this$demiFilterObject);
  560.     return $this;
  561. }
  562. /**
  563. * Get alpsteinRegions - AlpsteinRegions
  564. * @return \Pimcore\Model\DataObject\AlpsteinRegion[]
  565. */
  566. public function getAlpsteinRegions()
  567. {
  568.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  569.         $preValue $this->preGetValue("alpsteinRegions");
  570.         if ($preValue !== null) {
  571.             return $preValue;
  572.         }
  573.     }
  574.     $data $this->getClass()->getFieldDefinition("alpsteinRegions")->preGetData($this);
  575.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  576.         return $data->getPlain();
  577.     }
  578.     return $data;
  579. }
  580. /**
  581. * Set alpsteinRegions - AlpsteinRegions
  582. * @param \Pimcore\Model\DataObject\AlpsteinRegion[] $alpsteinRegions
  583. * @return \Pimcore\Model\DataObject\Region
  584. */
  585. public function setAlpsteinRegions($alpsteinRegions)
  586. {
  587.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  588.     $fd $this->getClass()->getFieldDefinition("alpsteinRegions");
  589.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  590.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  591.     $currentData $this->getAlpsteinRegions();
  592.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  593.     $isEqual $fd->isEqual($currentData$alpsteinRegions);
  594.     if (!$isEqual) {
  595.         $this->markFieldDirty("alpsteinRegions"true);
  596.     }
  597.     $this->alpsteinRegions $fd->preSetData($this$alpsteinRegions);
  598.     return $this;
  599. }
  600. }