var/classes/DataObject/Region.php line 53

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