var/classes/DataObject/Projecttype.php line 713

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - siteId [numeric]
  8.  * - localizedfields [localizedfields]
  9.  * -- name [input]
  10.  * -- slug [input]
  11.  * -- title [input]
  12.  * -- subtitle [input]
  13.  * -- sectionIntroduceTitle [input]
  14.  * -- sectionProjectTitle [input]
  15.  * -- sectionBrandTitle [input]
  16.  * -- sectionBrandDescription [input]
  17.  * -- sectionNewsTitle [input]
  18.  * -- sectionPartnerTitle [input]
  19.  * -- newsCategorySlug [input]
  20.  * -- description [wysiwyg]
  21.  * - isProperty [checkbox]
  22.  * - isEcosystem [checkbox]
  23.  * - isShowFilter [checkbox]
  24.  * - colors [fieldcollections]
  25.  * - heroSlider [fieldcollections]
  26.  * - heroImage [image]
  27.  * - background [image]
  28.  * - brands [fieldcollections]
  29.  * - partners [fieldcollections]
  30.  */
  31. namespace Pimcore\Model\DataObject;
  32. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  33. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  34. /**
  35. * @method static \Pimcore\Model\DataObject\Projecttype\Listing getList(array $config = [])
  36. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySiteId($value, $limit = 0, $offset = 0, $objectTypes = null)
  37. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  38. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  39. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  40. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  41. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySubtitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  42. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionIntroduceTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  43. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionProjectTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  44. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionBrandTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  45. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionBrandDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  46. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionNewsTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  47. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionPartnerTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  48. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByNewsCategorySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  49. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  50. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByIsProperty($value, $limit = 0, $offset = 0, $objectTypes = null)
  51. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByIsEcosystem($value, $limit = 0, $offset = 0, $objectTypes = null)
  52. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByIsShowFilter($value, $limit = 0, $offset = 0, $objectTypes = null)
  53. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByHeroImage($value, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByBackground($value, $limit = 0, $offset = 0, $objectTypes = null)
  55. */
  56. class Projecttype extends Concrete
  57. {
  58. protected $o_classId "projecttype";
  59. protected $o_className "Projecttype";
  60. protected $siteId;
  61. protected $localizedfields;
  62. protected $isProperty;
  63. protected $isEcosystem;
  64. protected $isShowFilter;
  65. protected $colors;
  66. protected $heroSlider;
  67. protected $heroImage;
  68. protected $background;
  69. protected $brands;
  70. protected $partners;
  71. /**
  72. * @param array $values
  73. * @return \Pimcore\Model\DataObject\Projecttype
  74. */
  75. public static function create($values = array()) {
  76.     $object = new static();
  77.     $object->setValues($values);
  78.     return $object;
  79. }
  80. /**
  81. * Get siteId - Site ID
  82. * @return int|null
  83. */
  84. public function getSiteId(): ?int
  85. {
  86.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  87.         $preValue $this->preGetValue("siteId");
  88.         if ($preValue !== null) {
  89.             return $preValue;
  90.         }
  91.     }
  92.     $data $this->siteId;
  93.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  94.         return $data->getPlain();
  95.     }
  96.     return $data;
  97. }
  98. /**
  99. * Set siteId - Site ID
  100. * @param int|null $siteId
  101. * @return \Pimcore\Model\DataObject\Projecttype
  102. */
  103. public function setSiteId(?int $siteId)
  104. {
  105.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  106.     $fd $this->getClass()->getFieldDefinition("siteId");
  107.     $this->siteId $fd->preSetData($this$siteId);
  108.     return $this;
  109. }
  110. /**
  111. * Get localizedfields - 
  112. * @return \Pimcore\Model\DataObject\Localizedfield|null
  113. */
  114. public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
  115. {
  116.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  117.         $preValue $this->preGetValue("localizedfields");
  118.         if ($preValue !== null) {
  119.             return $preValue;
  120.         }
  121.     }
  122.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  123.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  124.         return $data->getPlain();
  125.     }
  126.     return $data;
  127. }
  128. /**
  129. * Get name - Name
  130. * @return string|null
  131. */
  132. public function getName($language null): ?string
  133. {
  134.     $data $this->getLocalizedfields()->getLocalizedValue("name"$language);
  135.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  136.         $preValue $this->preGetValue("name");
  137.         if ($preValue !== null) {
  138.             return $preValue;
  139.         }
  140.     }
  141.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  142.         return $data->getPlain();
  143.     }
  144.     return $data;
  145. }
  146. /**
  147. * Get slug - Slug
  148. * @return string|null
  149. */
  150. public function getSlug($language null): ?string
  151. {
  152.     $data $this->getLocalizedfields()->getLocalizedValue("slug"$language);
  153.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  154.         $preValue $this->preGetValue("slug");
  155.         if ($preValue !== null) {
  156.             return $preValue;
  157.         }
  158.     }
  159.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  160.         return $data->getPlain();
  161.     }
  162.     return $data;
  163. }
  164. /**
  165. * Get title - Title
  166. * @return string|null
  167. */
  168. public function getTitle($language null): ?string
  169. {
  170.     $data $this->getLocalizedfields()->getLocalizedValue("title"$language);
  171.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  172.         $preValue $this->preGetValue("title");
  173.         if ($preValue !== null) {
  174.             return $preValue;
  175.         }
  176.     }
  177.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  178.         return $data->getPlain();
  179.     }
  180.     return $data;
  181. }
  182. /**
  183. * Get subtitle - Subtitle
  184. * @return string|null
  185. */
  186. public function getSubtitle($language null): ?string
  187. {
  188.     $data $this->getLocalizedfields()->getLocalizedValue("subtitle"$language);
  189.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  190.         $preValue $this->preGetValue("subtitle");
  191.         if ($preValue !== null) {
  192.             return $preValue;
  193.         }
  194.     }
  195.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  196.         return $data->getPlain();
  197.     }
  198.     return $data;
  199. }
  200. /**
  201. * Get sectionIntroduceTitle - Section Introduce Title
  202. * @return string|null
  203. */
  204. public function getSectionIntroduceTitle($language null): ?string
  205. {
  206.     $data $this->getLocalizedfields()->getLocalizedValue("sectionIntroduceTitle"$language);
  207.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  208.         $preValue $this->preGetValue("sectionIntroduceTitle");
  209.         if ($preValue !== null) {
  210.             return $preValue;
  211.         }
  212.     }
  213.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  214.         return $data->getPlain();
  215.     }
  216.     return $data;
  217. }
  218. /**
  219. * Get sectionProjectTitle - Section project title
  220. * @return string|null
  221. */
  222. public function getSectionProjectTitle($language null): ?string
  223. {
  224.     $data $this->getLocalizedfields()->getLocalizedValue("sectionProjectTitle"$language);
  225.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  226.         $preValue $this->preGetValue("sectionProjectTitle");
  227.         if ($preValue !== null) {
  228.             return $preValue;
  229.         }
  230.     }
  231.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  232.         return $data->getPlain();
  233.     }
  234.     return $data;
  235. }
  236. /**
  237. * Get sectionBrandTitle - Section Brand Title
  238. * @return string|null
  239. */
  240. public function getSectionBrandTitle($language null): ?string
  241. {
  242.     $data $this->getLocalizedfields()->getLocalizedValue("sectionBrandTitle"$language);
  243.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  244.         $preValue $this->preGetValue("sectionBrandTitle");
  245.         if ($preValue !== null) {
  246.             return $preValue;
  247.         }
  248.     }
  249.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  250.         return $data->getPlain();
  251.     }
  252.     return $data;
  253. }
  254. /**
  255. * Get sectionBrandDescription - Section brand description
  256. * @return string|null
  257. */
  258. public function getSectionBrandDescription($language null): ?string
  259. {
  260.     $data $this->getLocalizedfields()->getLocalizedValue("sectionBrandDescription"$language);
  261.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  262.         $preValue $this->preGetValue("sectionBrandDescription");
  263.         if ($preValue !== null) {
  264.             return $preValue;
  265.         }
  266.     }
  267.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  268.         return $data->getPlain();
  269.     }
  270.     return $data;
  271. }
  272. /**
  273. * Get sectionNewsTitle - Section news title
  274. * @return string|null
  275. */
  276. public function getSectionNewsTitle($language null): ?string
  277. {
  278.     $data $this->getLocalizedfields()->getLocalizedValue("sectionNewsTitle"$language);
  279.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  280.         $preValue $this->preGetValue("sectionNewsTitle");
  281.         if ($preValue !== null) {
  282.             return $preValue;
  283.         }
  284.     }
  285.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  286.         return $data->getPlain();
  287.     }
  288.     return $data;
  289. }
  290. /**
  291. * Get sectionPartnerTitle - Section partner title
  292. * @return string|null
  293. */
  294. public function getSectionPartnerTitle($language null): ?string
  295. {
  296.     $data $this->getLocalizedfields()->getLocalizedValue("sectionPartnerTitle"$language);
  297.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  298.         $preValue $this->preGetValue("sectionPartnerTitle");
  299.         if ($preValue !== null) {
  300.             return $preValue;
  301.         }
  302.     }
  303.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  304.         return $data->getPlain();
  305.     }
  306.     return $data;
  307. }
  308. /**
  309. * Get newsCategorySlug - News Category Slug
  310. * @return string|null
  311. */
  312. public function getNewsCategorySlug($language null): ?string
  313. {
  314.     $data $this->getLocalizedfields()->getLocalizedValue("newsCategorySlug"$language);
  315.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  316.         $preValue $this->preGetValue("newsCategorySlug");
  317.         if ($preValue !== null) {
  318.             return $preValue;
  319.         }
  320.     }
  321.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  322.         return $data->getPlain();
  323.     }
  324.     return $data;
  325. }
  326. /**
  327. * Get description - Description
  328. * @return string|null
  329. */
  330. public function getDescription($language null): ?string
  331. {
  332.     $data $this->getLocalizedfields()->getLocalizedValue("description"$language);
  333.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  334.         $preValue $this->preGetValue("description");
  335.         if ($preValue !== null) {
  336.             return $preValue;
  337.         }
  338.     }
  339.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  340.         return $data->getPlain();
  341.     }
  342.     return $data;
  343. }
  344. /**
  345. * Set localizedfields - 
  346. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  347. * @return \Pimcore\Model\DataObject\Projecttype
  348. */
  349. public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
  350. {
  351.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  352.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  353.     $currentData $this->getLocalizedfields();
  354.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  355.     $this->markFieldDirty("localizedfields"true);
  356.     $this->localizedfields $localizedfields;
  357.     return $this;
  358. }
  359. /**
  360. * Set name - Name
  361. * @param string|null $name
  362. * @return \Pimcore\Model\DataObject\Projecttype
  363. */
  364. public function setName (?string $name$language null)
  365. {
  366.     $isEqual false;
  367.     $this->getLocalizedfields()->setLocalizedValue("name"$name$language, !$isEqual);
  368.     return $this;
  369. }
  370. /**
  371. * Set slug - Slug
  372. * @param string|null $slug
  373. * @return \Pimcore\Model\DataObject\Projecttype
  374. */
  375. public function setSlug (?string $slug$language null)
  376. {
  377.     $isEqual false;
  378.     $this->getLocalizedfields()->setLocalizedValue("slug"$slug$language, !$isEqual);
  379.     return $this;
  380. }
  381. /**
  382. * Set title - Title
  383. * @param string|null $title
  384. * @return \Pimcore\Model\DataObject\Projecttype
  385. */
  386. public function setTitle (?string $title$language null)
  387. {
  388.     $isEqual false;
  389.     $this->getLocalizedfields()->setLocalizedValue("title"$title$language, !$isEqual);
  390.     return $this;
  391. }
  392. /**
  393. * Set subtitle - Subtitle
  394. * @param string|null $subtitle
  395. * @return \Pimcore\Model\DataObject\Projecttype
  396. */
  397. public function setSubtitle (?string $subtitle$language null)
  398. {
  399.     $isEqual false;
  400.     $this->getLocalizedfields()->setLocalizedValue("subtitle"$subtitle$language, !$isEqual);
  401.     return $this;
  402. }
  403. /**
  404. * Set sectionIntroduceTitle - Section Introduce Title
  405. * @param string|null $sectionIntroduceTitle
  406. * @return \Pimcore\Model\DataObject\Projecttype
  407. */
  408. public function setSectionIntroduceTitle (?string $sectionIntroduceTitle$language null)
  409. {
  410.     $isEqual false;
  411.     $this->getLocalizedfields()->setLocalizedValue("sectionIntroduceTitle"$sectionIntroduceTitle$language, !$isEqual);
  412.     return $this;
  413. }
  414. /**
  415. * Set sectionProjectTitle - Section project title
  416. * @param string|null $sectionProjectTitle
  417. * @return \Pimcore\Model\DataObject\Projecttype
  418. */
  419. public function setSectionProjectTitle (?string $sectionProjectTitle$language null)
  420. {
  421.     $isEqual false;
  422.     $this->getLocalizedfields()->setLocalizedValue("sectionProjectTitle"$sectionProjectTitle$language, !$isEqual);
  423.     return $this;
  424. }
  425. /**
  426. * Set sectionBrandTitle - Section Brand Title
  427. * @param string|null $sectionBrandTitle
  428. * @return \Pimcore\Model\DataObject\Projecttype
  429. */
  430. public function setSectionBrandTitle (?string $sectionBrandTitle$language null)
  431. {
  432.     $isEqual false;
  433.     $this->getLocalizedfields()->setLocalizedValue("sectionBrandTitle"$sectionBrandTitle$language, !$isEqual);
  434.     return $this;
  435. }
  436. /**
  437. * Set sectionBrandDescription - Section brand description
  438. * @param string|null $sectionBrandDescription
  439. * @return \Pimcore\Model\DataObject\Projecttype
  440. */
  441. public function setSectionBrandDescription (?string $sectionBrandDescription$language null)
  442. {
  443.     $isEqual false;
  444.     $this->getLocalizedfields()->setLocalizedValue("sectionBrandDescription"$sectionBrandDescription$language, !$isEqual);
  445.     return $this;
  446. }
  447. /**
  448. * Set sectionNewsTitle - Section news title
  449. * @param string|null $sectionNewsTitle
  450. * @return \Pimcore\Model\DataObject\Projecttype
  451. */
  452. public function setSectionNewsTitle (?string $sectionNewsTitle$language null)
  453. {
  454.     $isEqual false;
  455.     $this->getLocalizedfields()->setLocalizedValue("sectionNewsTitle"$sectionNewsTitle$language, !$isEqual);
  456.     return $this;
  457. }
  458. /**
  459. * Set sectionPartnerTitle - Section partner title
  460. * @param string|null $sectionPartnerTitle
  461. * @return \Pimcore\Model\DataObject\Projecttype
  462. */
  463. public function setSectionPartnerTitle (?string $sectionPartnerTitle$language null)
  464. {
  465.     $isEqual false;
  466.     $this->getLocalizedfields()->setLocalizedValue("sectionPartnerTitle"$sectionPartnerTitle$language, !$isEqual);
  467.     return $this;
  468. }
  469. /**
  470. * Set newsCategorySlug - News Category Slug
  471. * @param string|null $newsCategorySlug
  472. * @return \Pimcore\Model\DataObject\Projecttype
  473. */
  474. public function setNewsCategorySlug (?string $newsCategorySlug$language null)
  475. {
  476.     $isEqual false;
  477.     $this->getLocalizedfields()->setLocalizedValue("newsCategorySlug"$newsCategorySlug$language, !$isEqual);
  478.     return $this;
  479. }
  480. /**
  481. * Set description - Description
  482. * @param string|null $description
  483. * @return \Pimcore\Model\DataObject\Projecttype
  484. */
  485. public function setDescription (?string $description$language null)
  486. {
  487.     $isEqual false;
  488.     $this->getLocalizedfields()->setLocalizedValue("description"$description$language, !$isEqual);
  489.     return $this;
  490. }
  491. /**
  492. * Get isProperty - Là dự án bất động sản?
  493. * @return bool|null
  494. */
  495. public function getIsProperty(): ?bool
  496. {
  497.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  498.         $preValue $this->preGetValue("isProperty");
  499.         if ($preValue !== null) {
  500.             return $preValue;
  501.         }
  502.     }
  503.     $data $this->isProperty;
  504.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  505.         return $data->getPlain();
  506.     }
  507.     return $data;
  508. }
  509. /**
  510. * Set isProperty - Là dự án bất động sản?
  511. * @param bool|null $isProperty
  512. * @return \Pimcore\Model\DataObject\Projecttype
  513. */
  514. public function setIsProperty(?bool $isProperty)
  515. {
  516.     $this->isProperty $isProperty;
  517.     return $this;
  518. }
  519. /**
  520. * Get isEcosystem - Là hệ sinh thái
  521. * @return bool|null
  522. */
  523. public function getIsEcosystem(): ?bool
  524. {
  525.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  526.         $preValue $this->preGetValue("isEcosystem");
  527.         if ($preValue !== null) {
  528.             return $preValue;
  529.         }
  530.     }
  531.     $data $this->isEcosystem;
  532.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  533.         return $data->getPlain();
  534.     }
  535.     return $data;
  536. }
  537. /**
  538. * Set isEcosystem - Là hệ sinh thái
  539. * @param bool|null $isEcosystem
  540. * @return \Pimcore\Model\DataObject\Projecttype
  541. */
  542. public function setIsEcosystem(?bool $isEcosystem)
  543. {
  544.     $this->isEcosystem $isEcosystem;
  545.     return $this;
  546. }
  547. /**
  548. * Get isShowFilter - Hiển thị filter cho danh sách các dự án
  549. * @return bool|null
  550. */
  551. public function getIsShowFilter(): ?bool
  552. {
  553.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  554.         $preValue $this->preGetValue("isShowFilter");
  555.         if ($preValue !== null) {
  556.             return $preValue;
  557.         }
  558.     }
  559.     $data $this->isShowFilter;
  560.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  561.         return $data->getPlain();
  562.     }
  563.     return $data;
  564. }
  565. /**
  566. * Set isShowFilter - Hiển thị filter cho danh sách các dự án
  567. * @param bool|null $isShowFilter
  568. * @return \Pimcore\Model\DataObject\Projecttype
  569. */
  570. public function setIsShowFilter(?bool $isShowFilter)
  571. {
  572.     $this->isShowFilter $isShowFilter;
  573.     return $this;
  574. }
  575. /**
  576. * @return \Pimcore\Model\DataObject\Fieldcollection|null
  577. */
  578. public function getColors(): ?\Pimcore\Model\DataObject\Fieldcollection
  579. {
  580.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  581.         $preValue $this->preGetValue("colors");
  582.         if ($preValue !== null) {
  583.             return $preValue;
  584.         }
  585.     }
  586.     $data $this->getClass()->getFieldDefinition("colors")->preGetData($this);
  587.     return $data;
  588. }
  589. /**
  590. * Set colors - Colors
  591. * @param \Pimcore\Model\DataObject\Fieldcollection|null $colors
  592. * @return \Pimcore\Model\DataObject\Projecttype
  593. */
  594. public function setColors(?\Pimcore\Model\DataObject\Fieldcollection $colors)
  595. {
  596.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
  597.     $fd $this->getClass()->getFieldDefinition("colors");
  598.     $this->colors $fd->preSetData($this$colors);
  599.     return $this;
  600. }
  601. /**
  602. * @return \Pimcore\Model\DataObject\Fieldcollection|null
  603. */
  604. public function getHeroSlider(): ?\Pimcore\Model\DataObject\Fieldcollection
  605. {
  606.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  607.         $preValue $this->preGetValue("heroSlider");
  608.         if ($preValue !== null) {
  609.             return $preValue;
  610.         }
  611.     }
  612.     $data $this->getClass()->getFieldDefinition("heroSlider")->preGetData($this);
  613.     return $data;
  614. }
  615. /**
  616. * Set heroSlider - Hero Slider
  617. * @param \Pimcore\Model\DataObject\Fieldcollection|null $heroSlider
  618. * @return \Pimcore\Model\DataObject\Projecttype
  619. */
  620. public function setHeroSlider(?\Pimcore\Model\DataObject\Fieldcollection $heroSlider)
  621. {
  622.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
  623.     $fd $this->getClass()->getFieldDefinition("heroSlider");
  624.     $this->heroSlider $fd->preSetData($this$heroSlider);
  625.     return $this;
  626. }
  627. /**
  628. * Get heroImage - Hero Image
  629. * @return \Pimcore\Model\Asset\Image|null
  630. */
  631. public function getHeroImage(): ?\Pimcore\Model\Asset\Image
  632. {
  633.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  634.         $preValue $this->preGetValue("heroImage");
  635.         if ($preValue !== null) {
  636.             return $preValue;
  637.         }
  638.     }
  639.     $data $this->heroImage;
  640.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  641.         return $data->getPlain();
  642.     }
  643.     return $data;
  644. }
  645. /**
  646. * Set heroImage - Hero Image
  647. * @param \Pimcore\Model\Asset\Image|null $heroImage
  648. * @return \Pimcore\Model\DataObject\Projecttype
  649. */
  650. public function setHeroImage(?\Pimcore\Model\Asset\Image $heroImage)
  651. {
  652.     $this->heroImage $heroImage;
  653.     return $this;
  654. }
  655. /**
  656. * Get background - Background Image
  657. * @return \Pimcore\Model\Asset\Image|null
  658. */
  659. public function getBackground(): ?\Pimcore\Model\Asset\Image
  660. {
  661.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  662.         $preValue $this->preGetValue("background");
  663.         if ($preValue !== null) {
  664.             return $preValue;
  665.         }
  666.     }
  667.     $data $this->background;
  668.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  669.         return $data->getPlain();
  670.     }
  671.     return $data;
  672. }
  673. /**
  674. * Set background - Background Image
  675. * @param \Pimcore\Model\Asset\Image|null $background
  676. * @return \Pimcore\Model\DataObject\Projecttype
  677. */
  678. public function setBackground(?\Pimcore\Model\Asset\Image $background)
  679. {
  680.     $this->background $background;
  681.     return $this;
  682. }
  683. /**
  684. * @return \Pimcore\Model\DataObject\Fieldcollection|null
  685. */
  686. public function getBrands(): ?\Pimcore\Model\DataObject\Fieldcollection
  687. {
  688.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  689.         $preValue $this->preGetValue("brands");
  690.         if ($preValue !== null) {
  691.             return $preValue;
  692.         }
  693.     }
  694.     $data $this->getClass()->getFieldDefinition("brands")->preGetData($this);
  695.     return $data;
  696. }
  697. /**
  698. * Set brands - Brands
  699. * @param \Pimcore\Model\DataObject\Fieldcollection|null $brands
  700. * @return \Pimcore\Model\DataObject\Projecttype
  701. */
  702. public function setBrands(?\Pimcore\Model\DataObject\Fieldcollection $brands)
  703. {
  704.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
  705.     $fd $this->getClass()->getFieldDefinition("brands");
  706.     $this->brands $fd->preSetData($this$brands);
  707.     return $this;
  708. }
  709. /**
  710. * @return \Pimcore\Model\DataObject\Fieldcollection|null
  711. */
  712. public function getPartners(): ?\Pimcore\Model\DataObject\Fieldcollection
  713. {
  714.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  715.         $preValue $this->preGetValue("partners");
  716.         if ($preValue !== null) {
  717.             return $preValue;
  718.         }
  719.     }
  720.     $data $this->getClass()->getFieldDefinition("partners")->preGetData($this);
  721.     return $data;
  722. }
  723. /**
  724. * Set partners - Partners
  725. * @param \Pimcore\Model\DataObject\Fieldcollection|null $partners
  726. * @return \Pimcore\Model\DataObject\Projecttype
  727. */
  728. public function setPartners(?\Pimcore\Model\DataObject\Fieldcollection $partners)
  729. {
  730.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
  731.     $fd $this->getClass()->getFieldDefinition("partners");
  732.     $this->partners $fd->preSetData($this$partners);
  733.     return $this;
  734. }
  735. }