var/classes/DataObject/Category.php line 1256

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - enabled [checkbox]
  8.  * - anchor [checkbox]
  9.  * - include_in_menu [checkbox]
  10.  * - free_delivery [checkbox]
  11.  * - layer_category_only [checkbox]
  12.  * - search_exclude [checkbox]
  13.  * - exclude_from_category_filter [checkbox]
  14.  * - ubongo_exclude [checkbox]
  15.  * - additional_category [checkbox]
  16.  * - is_outlet_parent [checkbox]
  17.  * - new_in [checkbox]
  18.  * - sale [checkbox]
  19.  * - outlet [checkbox]
  20.  * - action [checkbox]
  21.  * - display_mode [select]
  22.  * - name [input]
  23.  * - seo_page_title [input]
  24.  * - seo_heading [input]
  25.  * - touchpoint_id [input]
  26.  * - default_sort_by [select]
  27.  * - description [textarea]
  28.  * - meta_title [input]
  29.  * - meta_keywords [input]
  30.  * - meta_description [input]
  31.  * - google_id [input]
  32.  * - zsdev_robots [input]
  33.  * - zsdev_canonical [input]
  34.  * - zsdev_include_in_sitemap [select]
  35.  * - zsdev_robots_pagination [input]
  36.  * - zsdev_canonical_pagination [input]
  37.  * - zsdev_include_in_sitemap_pagination [select]
  38.  * - zsdev_images_include_in_sitemap [select]
  39.  * - site [manyToOneRelation]
  40.  * - attribute_set [select]
  41.  * - special_title [input]
  42.  * - special_url [input]
  43.  * - shipping_level [select]
  44.  * - shipping_time [select]
  45.  * - image [image]
  46.  * - thumbnail [image]
  47.  */
  48. namespace Pimcore\Model\DataObject;
  49. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  50. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  51. /**
  52. * @method static \Pimcore\Model\DataObject\Category\Listing getList(array $config = [])
  53. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByEnabled($value, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByAnchor($value, $limit = 0, $offset = 0, $objectTypes = null)
  55. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByInclude_in_menu($value, $limit = 0, $offset = 0, $objectTypes = null)
  56. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByFree_delivery($value, $limit = 0, $offset = 0, $objectTypes = null)
  57. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByLayer_category_only($value, $limit = 0, $offset = 0, $objectTypes = null)
  58. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySearch_exclude($value, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByExclude_from_category_filter($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByUbongo_exclude($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByAdditional_category($value, $limit = 0, $offset = 0, $objectTypes = null)
  62. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByIs_outlet_parent($value, $limit = 0, $offset = 0, $objectTypes = null)
  63. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByNew_in($value, $limit = 0, $offset = 0, $objectTypes = null)
  64. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySale($value, $limit = 0, $offset = 0, $objectTypes = null)
  65. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByOutlet($value, $limit = 0, $offset = 0, $objectTypes = null)
  66. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByAction($value, $limit = 0, $offset = 0, $objectTypes = null)
  67. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByDisplay_mode($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySeo_page_title($value, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySeo_heading($value, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByTouchpoint_id($value, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByDefault_sort_by($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByMeta_title($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByMeta_keywords($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByMeta_description($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByGoogle_id($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_robots($value, $limit = 0, $offset = 0, $objectTypes = null)
  79. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_canonical($value, $limit = 0, $offset = 0, $objectTypes = null)
  80. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_include_in_sitemap($value, $limit = 0, $offset = 0, $objectTypes = null)
  81. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_robots_pagination($value, $limit = 0, $offset = 0, $objectTypes = null)
  82. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_canonical_pagination($value, $limit = 0, $offset = 0, $objectTypes = null)
  83. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_include_in_sitemap_pagination($value, $limit = 0, $offset = 0, $objectTypes = null)
  84. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByZsdev_images_include_in_sitemap($value, $limit = 0, $offset = 0, $objectTypes = null)
  85. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySite($value, $limit = 0, $offset = 0, $objectTypes = null)
  86. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByAttribute_set($value, $limit = 0, $offset = 0, $objectTypes = null)
  87. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySpecial_title($value, $limit = 0, $offset = 0, $objectTypes = null)
  88. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getBySpecial_url($value, $limit = 0, $offset = 0, $objectTypes = null)
  89. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByShipping_level($value, $limit = 0, $offset = 0, $objectTypes = null)
  90. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByShipping_time($value, $limit = 0, $offset = 0, $objectTypes = null)
  91. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
  92. * @method static \Pimcore\Model\DataObject\Category\Listing|\Pimcore\Model\DataObject\Category|null getByThumbnail($value, $limit = 0, $offset = 0, $objectTypes = null)
  93. */
  94. class Category extends Concrete
  95. {
  96. protected $o_classId "5";
  97. protected $o_className "Category";
  98. protected $enabled;
  99. protected $anchor;
  100. protected $include_in_menu;
  101. protected $free_delivery;
  102. protected $layer_category_only;
  103. protected $search_exclude;
  104. protected $exclude_from_category_filter;
  105. protected $ubongo_exclude;
  106. protected $additional_category;
  107. protected $is_outlet_parent;
  108. protected $new_in;
  109. protected $sale;
  110. protected $outlet;
  111. protected $action;
  112. protected $display_mode;
  113. protected $name;
  114. protected $seo_page_title;
  115. protected $seo_heading;
  116. protected $touchpoint_id;
  117. protected $default_sort_by;
  118. protected $description;
  119. protected $meta_title;
  120. protected $meta_keywords;
  121. protected $meta_description;
  122. protected $google_id;
  123. protected $zsdev_robots;
  124. protected $zsdev_canonical;
  125. protected $zsdev_include_in_sitemap;
  126. protected $zsdev_robots_pagination;
  127. protected $zsdev_canonical_pagination;
  128. protected $zsdev_include_in_sitemap_pagination;
  129. protected $zsdev_images_include_in_sitemap;
  130. protected $site;
  131. protected $attribute_set;
  132. protected $special_title;
  133. protected $special_url;
  134. protected $shipping_level;
  135. protected $shipping_time;
  136. protected $image;
  137. protected $thumbnail;
  138. /**
  139. * @param array $values
  140. * @return \Pimcore\Model\DataObject\Category
  141. */
  142. public static function create($values = array()) {
  143.     $object = new static();
  144.     $object->setValues($values);
  145.     return $object;
  146. }
  147. /**
  148. * Get enabled - Enabled
  149. * @return bool|null
  150. */
  151. public function getEnabled()
  152. {
  153.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  154.         $preValue $this->preGetValue("enabled");
  155.         if ($preValue !== null) {
  156.             return $preValue;
  157.         }
  158.     }
  159.     $data $this->enabled;
  160.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  161.         return $data->getPlain();
  162.     }
  163.     return $data;
  164. }
  165. /**
  166. * Set enabled - Enabled
  167. * @param bool|null $enabled
  168. * @return \Pimcore\Model\DataObject\Category
  169. */
  170. public function setEnabled($enabled)
  171. {
  172.     $this->enabled $enabled;
  173.     return $this;
  174. }
  175. /**
  176. * Get anchor - anchor
  177. * @return bool|null
  178. */
  179. public function getAnchor()
  180. {
  181.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  182.         $preValue $this->preGetValue("anchor");
  183.         if ($preValue !== null) {
  184.             return $preValue;
  185.         }
  186.     }
  187.     $data $this->anchor;
  188.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  189.         return $data->getPlain();
  190.     }
  191.     return $data;
  192. }
  193. /**
  194. * Set anchor - anchor
  195. * @param bool|null $anchor
  196. * @return \Pimcore\Model\DataObject\Category
  197. */
  198. public function setAnchor($anchor)
  199. {
  200.     $this->anchor $anchor;
  201.     return $this;
  202. }
  203. /**
  204. * Get include_in_menu - Uključi na meniu
  205. * @return bool|null
  206. */
  207. public function getInclude_in_menu()
  208. {
  209.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  210.         $preValue $this->preGetValue("include_in_menu");
  211.         if ($preValue !== null) {
  212.             return $preValue;
  213.         }
  214.     }
  215.     $data $this->include_in_menu;
  216.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  217.         return $data->getPlain();
  218.     }
  219.     return $data;
  220. }
  221. /**
  222. * Set include_in_menu - Uključi na meniu
  223. * @param bool|null $include_in_menu
  224. * @return \Pimcore\Model\DataObject\Category
  225. */
  226. public function setInclude_in_menu($include_in_menu)
  227. {
  228.     $this->include_in_menu $include_in_menu;
  229.     return $this;
  230. }
  231. /**
  232. * Get free_delivery - Free delivery
  233. * @return bool|null
  234. */
  235. public function getFree_delivery()
  236. {
  237.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  238.         $preValue $this->preGetValue("free_delivery");
  239.         if ($preValue !== null) {
  240.             return $preValue;
  241.         }
  242.     }
  243.     $data $this->free_delivery;
  244.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  245.         return $data->getPlain();
  246.     }
  247.     return $data;
  248. }
  249. /**
  250. * Set free_delivery - Free delivery
  251. * @param bool|null $free_delivery
  252. * @return \Pimcore\Model\DataObject\Category
  253. */
  254. public function setFree_delivery($free_delivery)
  255. {
  256.     $this->free_delivery $free_delivery;
  257.     return $this;
  258. }
  259. /**
  260. * Get layer_category_only - Only Subcategories
  261. * @return bool|null
  262. */
  263. public function getLayer_category_only()
  264. {
  265.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  266.         $preValue $this->preGetValue("layer_category_only");
  267.         if ($preValue !== null) {
  268.             return $preValue;
  269.         }
  270.     }
  271.     $data $this->layer_category_only;
  272.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  273.         return $data->getPlain();
  274.     }
  275.     return $data;
  276. }
  277. /**
  278. * Set layer_category_only - Only Subcategories
  279. * @param bool|null $layer_category_only
  280. * @return \Pimcore\Model\DataObject\Category
  281. */
  282. public function setLayer_category_only($layer_category_only)
  283. {
  284.     $this->layer_category_only $layer_category_only;
  285.     return $this;
  286. }
  287. /**
  288. * Get search_exclude - Ne koristi na searchu
  289. * @return bool|null
  290. */
  291. public function getSearch_exclude()
  292. {
  293.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  294.         $preValue $this->preGetValue("search_exclude");
  295.         if ($preValue !== null) {
  296.             return $preValue;
  297.         }
  298.     }
  299.     $data $this->search_exclude;
  300.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  301.         return $data->getPlain();
  302.     }
  303.     return $data;
  304. }
  305. /**
  306. * Set search_exclude - Ne koristi na searchu
  307. * @param bool|null $search_exclude
  308. * @return \Pimcore\Model\DataObject\Category
  309. */
  310. public function setSearch_exclude($search_exclude)
  311. {
  312.     $this->search_exclude $search_exclude;
  313.     return $this;
  314. }
  315. /**
  316. * Get exclude_from_category_filter - Exclude from category filter
  317. * @return bool|null
  318. */
  319. public function getExclude_from_category_filter()
  320. {
  321.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  322.         $preValue $this->preGetValue("exclude_from_category_filter");
  323.         if ($preValue !== null) {
  324.             return $preValue;
  325.         }
  326.     }
  327.     $data $this->exclude_from_category_filter;
  328.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  329.         return $data->getPlain();
  330.     }
  331.     return $data;
  332. }
  333. /**
  334. * Set exclude_from_category_filter - Exclude from category filter
  335. * @param bool|null $exclude_from_category_filter
  336. * @return \Pimcore\Model\DataObject\Category
  337. */
  338. public function setExclude_from_category_filter($exclude_from_category_filter)
  339. {
  340.     $this->exclude_from_category_filter $exclude_from_category_filter;
  341.     return $this;
  342. }
  343. /**
  344. * Get ubongo_exclude - Ubongo exclude
  345. * @return bool|null
  346. */
  347. public function getUbongo_exclude()
  348. {
  349.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  350.         $preValue $this->preGetValue("ubongo_exclude");
  351.         if ($preValue !== null) {
  352.             return $preValue;
  353.         }
  354.     }
  355.     $data $this->ubongo_exclude;
  356.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  357.         return $data->getPlain();
  358.     }
  359.     return $data;
  360. }
  361. /**
  362. * Set ubongo_exclude - Ubongo exclude
  363. * @param bool|null $ubongo_exclude
  364. * @return \Pimcore\Model\DataObject\Category
  365. */
  366. public function setUbongo_exclude($ubongo_exclude)
  367. {
  368.     $this->ubongo_exclude $ubongo_exclude;
  369.     return $this;
  370. }
  371. /**
  372. * Get additional_category - Additional category
  373. * @return bool|null
  374. */
  375. public function getAdditional_category()
  376. {
  377.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  378.         $preValue $this->preGetValue("additional_category");
  379.         if ($preValue !== null) {
  380.             return $preValue;
  381.         }
  382.     }
  383.     $data $this->additional_category;
  384.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  385.         return $data->getPlain();
  386.     }
  387.     return $data;
  388. }
  389. /**
  390. * Set additional_category - Additional category
  391. * @param bool|null $additional_category
  392. * @return \Pimcore\Model\DataObject\Category
  393. */
  394. public function setAdditional_category($additional_category)
  395. {
  396.     $this->additional_category $additional_category;
  397.     return $this;
  398. }
  399. /**
  400. * Get is_outlet_parent - Outlet parent
  401. * @return bool|null
  402. */
  403. public function getIs_outlet_parent()
  404. {
  405.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  406.         $preValue $this->preGetValue("is_outlet_parent");
  407.         if ($preValue !== null) {
  408.             return $preValue;
  409.         }
  410.     }
  411.     $data $this->is_outlet_parent;
  412.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  413.         return $data->getPlain();
  414.     }
  415.     return $data;
  416. }
  417. /**
  418. * Set is_outlet_parent - Outlet parent
  419. * @param bool|null $is_outlet_parent
  420. * @return \Pimcore\Model\DataObject\Category
  421. */
  422. public function setIs_outlet_parent($is_outlet_parent)
  423. {
  424.     $this->is_outlet_parent $is_outlet_parent;
  425.     return $this;
  426. }
  427. /**
  428. * Get new_in - New in
  429. * @return bool|null
  430. */
  431. public function getNew_in()
  432. {
  433.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  434.         $preValue $this->preGetValue("new_in");
  435.         if ($preValue !== null) {
  436.             return $preValue;
  437.         }
  438.     }
  439.     $data $this->new_in;
  440.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  441.         return $data->getPlain();
  442.     }
  443.     return $data;
  444. }
  445. /**
  446. * Set new_in - New in
  447. * @param bool|null $new_in
  448. * @return \Pimcore\Model\DataObject\Category
  449. */
  450. public function setNew_in($new_in)
  451. {
  452.     $this->new_in $new_in;
  453.     return $this;
  454. }
  455. /**
  456. * Get sale - Sale
  457. * @return bool|null
  458. */
  459. public function getSale()
  460. {
  461.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  462.         $preValue $this->preGetValue("sale");
  463.         if ($preValue !== null) {
  464.             return $preValue;
  465.         }
  466.     }
  467.     $data $this->sale;
  468.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  469.         return $data->getPlain();
  470.     }
  471.     return $data;
  472. }
  473. /**
  474. * Set sale - Sale
  475. * @param bool|null $sale
  476. * @return \Pimcore\Model\DataObject\Category
  477. */
  478. public function setSale($sale)
  479. {
  480.     $this->sale $sale;
  481.     return $this;
  482. }
  483. /**
  484. * Get outlet - Outlet
  485. * @return bool|null
  486. */
  487. public function getOutlet()
  488. {
  489.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  490.         $preValue $this->preGetValue("outlet");
  491.         if ($preValue !== null) {
  492.             return $preValue;
  493.         }
  494.     }
  495.     $data $this->outlet;
  496.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  497.         return $data->getPlain();
  498.     }
  499.     return $data;
  500. }
  501. /**
  502. * Set outlet - Outlet
  503. * @param bool|null $outlet
  504. * @return \Pimcore\Model\DataObject\Category
  505. */
  506. public function setOutlet($outlet)
  507. {
  508.     $this->outlet $outlet;
  509.     return $this;
  510. }
  511. /**
  512. * Get action - Action
  513. * @return bool|null
  514. */
  515. public function getAction()
  516. {
  517.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  518.         $preValue $this->preGetValue("action");
  519.         if ($preValue !== null) {
  520.             return $preValue;
  521.         }
  522.     }
  523.     $data $this->action;
  524.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  525.         return $data->getPlain();
  526.     }
  527.     return $data;
  528. }
  529. /**
  530. * Set action - Action
  531. * @param bool|null $action
  532. * @return \Pimcore\Model\DataObject\Category
  533. */
  534. public function setAction($action)
  535. {
  536.     $this->action $action;
  537.     return $this;
  538. }
  539. /**
  540. * Get display_mode - Display mode
  541. * @return string|null
  542. */
  543. public function getDisplay_mode()
  544. {
  545.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  546.         $preValue $this->preGetValue("display_mode");
  547.         if ($preValue !== null) {
  548.             return $preValue;
  549.         }
  550.     }
  551.     $data $this->display_mode;
  552.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  553.         return $data->getPlain();
  554.     }
  555.     return $data;
  556. }
  557. /**
  558. * Set display_mode - Display mode
  559. * @param string|null $display_mode
  560. * @return \Pimcore\Model\DataObject\Category
  561. */
  562. public function setDisplay_mode($display_mode)
  563. {
  564.     $this->display_mode $display_mode;
  565.     return $this;
  566. }
  567. /**
  568. * Get name - Ime
  569. * @return string|null
  570. */
  571. public function getName()
  572. {
  573.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  574.         $preValue $this->preGetValue("name");
  575.         if ($preValue !== null) {
  576.             return $preValue;
  577.         }
  578.     }
  579.     $data $this->name;
  580.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  581.         return $data->getPlain();
  582.     }
  583.     return $data;
  584. }
  585. /**
  586. * Set name - Ime
  587. * @param string|null $name
  588. * @return \Pimcore\Model\DataObject\Category
  589. */
  590. public function setName($name)
  591. {
  592.     $this->name $name;
  593.     return $this;
  594. }
  595. /**
  596. * Get seo_page_title - SEO Page Title
  597. * @return string|null
  598. */
  599. public function getSeo_page_title()
  600. {
  601.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  602.         $preValue $this->preGetValue("seo_page_title");
  603.         if ($preValue !== null) {
  604.             return $preValue;
  605.         }
  606.     }
  607.     $data $this->seo_page_title;
  608.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  609.         return $data->getPlain();
  610.     }
  611.     return $data;
  612. }
  613. /**
  614. * Set seo_page_title - SEO Page Title
  615. * @param string|null $seo_page_title
  616. * @return \Pimcore\Model\DataObject\Category
  617. */
  618. public function setSeo_page_title($seo_page_title)
  619. {
  620.     $this->seo_page_title $seo_page_title;
  621.     return $this;
  622. }
  623. /**
  624. * Get seo_heading - SEO H1 heading
  625. * @return string|null
  626. */
  627. public function getSeo_heading()
  628. {
  629.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  630.         $preValue $this->preGetValue("seo_heading");
  631.         if ($preValue !== null) {
  632.             return $preValue;
  633.         }
  634.     }
  635.     $data $this->seo_heading;
  636.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  637.         return $data->getPlain();
  638.     }
  639.     return $data;
  640. }
  641. /**
  642. * Set seo_heading - SEO H1 heading
  643. * @param string|null $seo_heading
  644. * @return \Pimcore\Model\DataObject\Category
  645. */
  646. public function setSeo_heading($seo_heading)
  647. {
  648.     $this->seo_heading $seo_heading;
  649.     return $this;
  650. }
  651. /**
  652. * Get touchpoint_id - Touchpoint  id
  653. * @return string|null
  654. */
  655. public function getTouchpoint_id()
  656. {
  657.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  658.         $preValue $this->preGetValue("touchpoint_id");
  659.         if ($preValue !== null) {
  660.             return $preValue;
  661.         }
  662.     }
  663.     $data $this->touchpoint_id;
  664.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  665.         return $data->getPlain();
  666.     }
  667.     return $data;
  668. }
  669. /**
  670. * Set touchpoint_id - Touchpoint  id
  671. * @param string|null $touchpoint_id
  672. * @return \Pimcore\Model\DataObject\Category
  673. */
  674. public function setTouchpoint_id($touchpoint_id)
  675. {
  676.     $this->touchpoint_id $touchpoint_id;
  677.     return $this;
  678. }
  679. /**
  680. * Get default_sort_by - Difoltno sortiranje po
  681. * @return string|null
  682. */
  683. public function getDefault_sort_by()
  684. {
  685.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  686.         $preValue $this->preGetValue("default_sort_by");
  687.         if ($preValue !== null) {
  688.             return $preValue;
  689.         }
  690.     }
  691.     $data $this->default_sort_by;
  692.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  693.         return $data->getPlain();
  694.     }
  695.     return $data;
  696. }
  697. /**
  698. * Set default_sort_by - Difoltno sortiranje po
  699. * @param string|null $default_sort_by
  700. * @return \Pimcore\Model\DataObject\Category
  701. */
  702. public function setDefault_sort_by($default_sort_by)
  703. {
  704.     $this->default_sort_by $default_sort_by;
  705.     return $this;
  706. }
  707. /**
  708. * Get description - Opis
  709. * @return string|null
  710. */
  711. public function getDescription()
  712. {
  713.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  714.         $preValue $this->preGetValue("description");
  715.         if ($preValue !== null) {
  716.             return $preValue;
  717.         }
  718.     }
  719.     $data $this->description;
  720.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  721.         return $data->getPlain();
  722.     }
  723.     return $data;
  724. }
  725. /**
  726. * Set description - Opis
  727. * @param string|null $description
  728. * @return \Pimcore\Model\DataObject\Category
  729. */
  730. public function setDescription($description)
  731. {
  732.     $this->description $description;
  733.     return $this;
  734. }
  735. /**
  736. * Get meta_title - Meta title
  737. * @return string|null
  738. */
  739. public function getMeta_title()
  740. {
  741.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  742.         $preValue $this->preGetValue("meta_title");
  743.         if ($preValue !== null) {
  744.             return $preValue;
  745.         }
  746.     }
  747.     $data $this->meta_title;
  748.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  749.         return $data->getPlain();
  750.     }
  751.     return $data;
  752. }
  753. /**
  754. * Set meta_title - Meta title
  755. * @param string|null $meta_title
  756. * @return \Pimcore\Model\DataObject\Category
  757. */
  758. public function setMeta_title($meta_title)
  759. {
  760.     $this->meta_title $meta_title;
  761.     return $this;
  762. }
  763. /**
  764. * Get meta_keywords - Meta keywords
  765. * @return string|null
  766. */
  767. public function getMeta_keywords()
  768. {
  769.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  770.         $preValue $this->preGetValue("meta_keywords");
  771.         if ($preValue !== null) {
  772.             return $preValue;
  773.         }
  774.     }
  775.     $data $this->meta_keywords;
  776.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  777.         return $data->getPlain();
  778.     }
  779.     return $data;
  780. }
  781. /**
  782. * Set meta_keywords - Meta keywords
  783. * @param string|null $meta_keywords
  784. * @return \Pimcore\Model\DataObject\Category
  785. */
  786. public function setMeta_keywords($meta_keywords)
  787. {
  788.     $this->meta_keywords $meta_keywords;
  789.     return $this;
  790. }
  791. /**
  792. * Get meta_description - Meta description
  793. * @return string|null
  794. */
  795. public function getMeta_description()
  796. {
  797.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  798.         $preValue $this->preGetValue("meta_description");
  799.         if ($preValue !== null) {
  800.             return $preValue;
  801.         }
  802.     }
  803.     $data $this->meta_description;
  804.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  805.         return $data->getPlain();
  806.     }
  807.     return $data;
  808. }
  809. /**
  810. * Set meta_description - Meta description
  811. * @param string|null $meta_description
  812. * @return \Pimcore\Model\DataObject\Category
  813. */
  814. public function setMeta_description($meta_description)
  815. {
  816.     $this->meta_description $meta_description;
  817.     return $this;
  818. }
  819. /**
  820. * Get google_id - Google ID
  821. * @return string|null
  822. */
  823. public function getGoogle_id()
  824. {
  825.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  826.         $preValue $this->preGetValue("google_id");
  827.         if ($preValue !== null) {
  828.             return $preValue;
  829.         }
  830.     }
  831.     $data $this->google_id;
  832.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  833.         return $data->getPlain();
  834.     }
  835.     return $data;
  836. }
  837. /**
  838. * Set google_id - Google ID
  839. * @param string|null $google_id
  840. * @return \Pimcore\Model\DataObject\Category
  841. */
  842. public function setGoogle_id($google_id)
  843. {
  844.     $this->google_id $google_id;
  845.     return $this;
  846. }
  847. /**
  848. * Get zsdev_robots - Robots
  849. * @return string|null
  850. */
  851. public function getZsdev_robots()
  852. {
  853.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  854.         $preValue $this->preGetValue("zsdev_robots");
  855.         if ($preValue !== null) {
  856.             return $preValue;
  857.         }
  858.     }
  859.     $data $this->zsdev_robots;
  860.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  861.         return $data->getPlain();
  862.     }
  863.     return $data;
  864. }
  865. /**
  866. * Set zsdev_robots - Robots
  867. * @param string|null $zsdev_robots
  868. * @return \Pimcore\Model\DataObject\Category
  869. */
  870. public function setZsdev_robots($zsdev_robots)
  871. {
  872.     $this->zsdev_robots $zsdev_robots;
  873.     return $this;
  874. }
  875. /**
  876. * Get zsdev_canonical - Canonical
  877. * @return string|null
  878. */
  879. public function getZsdev_canonical()
  880. {
  881.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  882.         $preValue $this->preGetValue("zsdev_canonical");
  883.         if ($preValue !== null) {
  884.             return $preValue;
  885.         }
  886.     }
  887.     $data $this->zsdev_canonical;
  888.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  889.         return $data->getPlain();
  890.     }
  891.     return $data;
  892. }
  893. /**
  894. * Set zsdev_canonical - Canonical
  895. * @param string|null $zsdev_canonical
  896. * @return \Pimcore\Model\DataObject\Category
  897. */
  898. public function setZsdev_canonical($zsdev_canonical)
  899. {
  900.     $this->zsdev_canonical $zsdev_canonical;
  901.     return $this;
  902. }
  903. /**
  904. * Get zsdev_include_in_sitemap - Include in sitemap
  905. * @return string|null
  906. */
  907. public function getZsdev_include_in_sitemap()
  908. {
  909.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  910.         $preValue $this->preGetValue("zsdev_include_in_sitemap");
  911.         if ($preValue !== null) {
  912.             return $preValue;
  913.         }
  914.     }
  915.     $data $this->zsdev_include_in_sitemap;
  916.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  917.         return $data->getPlain();
  918.     }
  919.     return $data;
  920. }
  921. /**
  922. * Set zsdev_include_in_sitemap - Include in sitemap
  923. * @param string|null $zsdev_include_in_sitemap
  924. * @return \Pimcore\Model\DataObject\Category
  925. */
  926. public function setZsdev_include_in_sitemap($zsdev_include_in_sitemap)
  927. {
  928.     $this->zsdev_include_in_sitemap $zsdev_include_in_sitemap;
  929.     return $this;
  930. }
  931. /**
  932. * Get zsdev_robots_pagination - Robots (pagination)
  933. * @return string|null
  934. */
  935. public function getZsdev_robots_pagination()
  936. {
  937.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  938.         $preValue $this->preGetValue("zsdev_robots_pagination");
  939.         if ($preValue !== null) {
  940.             return $preValue;
  941.         }
  942.     }
  943.     $data $this->zsdev_robots_pagination;
  944.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  945.         return $data->getPlain();
  946.     }
  947.     return $data;
  948. }
  949. /**
  950. * Set zsdev_robots_pagination - Robots (pagination)
  951. * @param string|null $zsdev_robots_pagination
  952. * @return \Pimcore\Model\DataObject\Category
  953. */
  954. public function setZsdev_robots_pagination($zsdev_robots_pagination)
  955. {
  956.     $this->zsdev_robots_pagination $zsdev_robots_pagination;
  957.     return $this;
  958. }
  959. /**
  960. * Get zsdev_canonical_pagination - Canonical (pagination)
  961. * @return string|null
  962. */
  963. public function getZsdev_canonical_pagination()
  964. {
  965.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  966.         $preValue $this->preGetValue("zsdev_canonical_pagination");
  967.         if ($preValue !== null) {
  968.             return $preValue;
  969.         }
  970.     }
  971.     $data $this->zsdev_canonical_pagination;
  972.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  973.         return $data->getPlain();
  974.     }
  975.     return $data;
  976. }
  977. /**
  978. * Set zsdev_canonical_pagination - Canonical (pagination)
  979. * @param string|null $zsdev_canonical_pagination
  980. * @return \Pimcore\Model\DataObject\Category
  981. */
  982. public function setZsdev_canonical_pagination($zsdev_canonical_pagination)
  983. {
  984.     $this->zsdev_canonical_pagination $zsdev_canonical_pagination;
  985.     return $this;
  986. }
  987. /**
  988. * Get zsdev_include_in_sitemap_pagination - Include in sitemap (pagination)
  989. * @return string|null
  990. */
  991. public function getZsdev_include_in_sitemap_pagination()
  992. {
  993.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  994.         $preValue $this->preGetValue("zsdev_include_in_sitemap_pagination");
  995.         if ($preValue !== null) {
  996.             return $preValue;
  997.         }
  998.     }
  999.     $data $this->zsdev_include_in_sitemap_pagination;
  1000.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1001.         return $data->getPlain();
  1002.     }
  1003.     return $data;
  1004. }
  1005. /**
  1006. * Set zsdev_include_in_sitemap_pagination - Include in sitemap (pagination)
  1007. * @param string|null $zsdev_include_in_sitemap_pagination
  1008. * @return \Pimcore\Model\DataObject\Category
  1009. */
  1010. public function setZsdev_include_in_sitemap_pagination($zsdev_include_in_sitemap_pagination)
  1011. {
  1012.     $this->zsdev_include_in_sitemap_pagination $zsdev_include_in_sitemap_pagination;
  1013.     return $this;
  1014. }
  1015. /**
  1016. * Get zsdev_images_include_in_sitemap - Include images in sitemap
  1017. * @return string|null
  1018. */
  1019. public function getZsdev_images_include_in_sitemap()
  1020. {
  1021.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1022.         $preValue $this->preGetValue("zsdev_images_include_in_sitemap");
  1023.         if ($preValue !== null) {
  1024.             return $preValue;
  1025.         }
  1026.     }
  1027.     $data $this->zsdev_images_include_in_sitemap;
  1028.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1029.         return $data->getPlain();
  1030.     }
  1031.     return $data;
  1032. }
  1033. /**
  1034. * Set zsdev_images_include_in_sitemap - Include images in sitemap
  1035. * @param string|null $zsdev_images_include_in_sitemap
  1036. * @return \Pimcore\Model\DataObject\Category
  1037. */
  1038. public function setZsdev_images_include_in_sitemap($zsdev_images_include_in_sitemap)
  1039. {
  1040.     $this->zsdev_images_include_in_sitemap $zsdev_images_include_in_sitemap;
  1041.     return $this;
  1042. }
  1043. /**
  1044. * Get site - Site
  1045. * @return \Pimcore\Model\DataObject\Site|null
  1046. */
  1047. public function getSite()
  1048. {
  1049.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1050.         $preValue $this->preGetValue("site");
  1051.         if ($preValue !== null) {
  1052.             return $preValue;
  1053.         }
  1054.     }
  1055.     $data $this->getClass()->getFieldDefinition("site")->preGetData($this);
  1056.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1057.         return $data->getPlain();
  1058.     }
  1059.     return $data;
  1060. }
  1061. /**
  1062. * Set site - Site
  1063. * @param \Pimcore\Model\DataObject\Site|null $site
  1064. * @return \Pimcore\Model\DataObject\Category
  1065. */
  1066. public function setSite($site)
  1067. {
  1068.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1069.     $fd $this->getClass()->getFieldDefinition("site");
  1070.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1071.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1072.     $currentData $this->getSite();
  1073.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1074.     $isEqual $fd->isEqual($currentData$site);
  1075.     if (!$isEqual) {
  1076.         $this->markFieldDirty("site"true);
  1077.     }
  1078.     $this->site $fd->preSetData($this$site);
  1079.     return $this;
  1080. }
  1081. /**
  1082. * Get attribute_set - Attribute set
  1083. * @return string|null
  1084. */
  1085. public function getAttribute_set()
  1086. {
  1087.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1088.         $preValue $this->preGetValue("attribute_set");
  1089.         if ($preValue !== null) {
  1090.             return $preValue;
  1091.         }
  1092.     }
  1093.     $data $this->attribute_set;
  1094.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1095.         return $data->getPlain();
  1096.     }
  1097.     return $data;
  1098. }
  1099. /**
  1100. * Set attribute_set - Attribute set
  1101. * @param string|null $attribute_set
  1102. * @return \Pimcore\Model\DataObject\Category
  1103. */
  1104. public function setAttribute_set($attribute_set)
  1105. {
  1106.     $this->attribute_set $attribute_set;
  1107.     return $this;
  1108. }
  1109. /**
  1110. * Get special_title - Special title
  1111. * @return string|null
  1112. */
  1113. public function getSpecial_title()
  1114. {
  1115.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1116.         $preValue $this->preGetValue("special_title");
  1117.         if ($preValue !== null) {
  1118.             return $preValue;
  1119.         }
  1120.     }
  1121.     $data $this->special_title;
  1122.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1123.         return $data->getPlain();
  1124.     }
  1125.     return $data;
  1126. }
  1127. /**
  1128. * Set special_title - Special title
  1129. * @param string|null $special_title
  1130. * @return \Pimcore\Model\DataObject\Category
  1131. */
  1132. public function setSpecial_title($special_title)
  1133. {
  1134.     $this->special_title $special_title;
  1135.     return $this;
  1136. }
  1137. /**
  1138. * Get special_url - Special URL
  1139. * @return string|null
  1140. */
  1141. public function getSpecial_url()
  1142. {
  1143.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1144.         $preValue $this->preGetValue("special_url");
  1145.         if ($preValue !== null) {
  1146.             return $preValue;
  1147.         }
  1148.     }
  1149.     $data $this->special_url;
  1150.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1151.         return $data->getPlain();
  1152.     }
  1153.     return $data;
  1154. }
  1155. /**
  1156. * Set special_url - Special URL
  1157. * @param string|null $special_url
  1158. * @return \Pimcore\Model\DataObject\Category
  1159. */
  1160. public function setSpecial_url($special_url)
  1161. {
  1162.     $this->special_url $special_url;
  1163.     return $this;
  1164. }
  1165. /**
  1166. * Get shipping_level - Shipping level
  1167. * @return string|null
  1168. */
  1169. public function getShipping_level()
  1170. {
  1171.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1172.         $preValue $this->preGetValue("shipping_level");
  1173.         if ($preValue !== null) {
  1174.             return $preValue;
  1175.         }
  1176.     }
  1177.     $data $this->shipping_level;
  1178.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1179.         return $data->getPlain();
  1180.     }
  1181.     return $data;
  1182. }
  1183. /**
  1184. * Set shipping_level - Shipping level
  1185. * @param string|null $shipping_level
  1186. * @return \Pimcore\Model\DataObject\Category
  1187. */
  1188. public function setShipping_level($shipping_level)
  1189. {
  1190.     $this->shipping_level $shipping_level;
  1191.     return $this;
  1192. }
  1193. /**
  1194. * Get shipping_time - Shipping time
  1195. * @return string|null
  1196. */
  1197. public function getShipping_time()
  1198. {
  1199.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1200.         $preValue $this->preGetValue("shipping_time");
  1201.         if ($preValue !== null) {
  1202.             return $preValue;
  1203.         }
  1204.     }
  1205.     $data $this->shipping_time;
  1206.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1207.         return $data->getPlain();
  1208.     }
  1209.     return $data;
  1210. }
  1211. /**
  1212. * Set shipping_time - Shipping time
  1213. * @param string|null $shipping_time
  1214. * @return \Pimcore\Model\DataObject\Category
  1215. */
  1216. public function setShipping_time($shipping_time)
  1217. {
  1218.     $this->shipping_time $shipping_time;
  1219.     return $this;
  1220. }
  1221. /**
  1222. * Get image - Glavna slika
  1223. * @return \Pimcore\Model\Asset\Image|null
  1224. */
  1225. public function getImage()
  1226. {
  1227.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1228.         $preValue $this->preGetValue("image");
  1229.         if ($preValue !== null) {
  1230.             return $preValue;
  1231.         }
  1232.     }
  1233.     $data $this->image;
  1234.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1235.         return $data->getPlain();
  1236.     }
  1237.     return $data;
  1238. }
  1239. /**
  1240. * Set image - Glavna slika
  1241. * @param \Pimcore\Model\Asset\Image|null $image
  1242. * @return \Pimcore\Model\DataObject\Category
  1243. */
  1244. public function setImage($image)
  1245. {
  1246.     $this->image $image;
  1247.     return $this;
  1248. }
  1249. /**
  1250. * Get thumbnail - Thumbnail
  1251. * @return \Pimcore\Model\Asset\Image|null
  1252. */
  1253. public function getThumbnail()
  1254. {
  1255.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1256.         $preValue $this->preGetValue("thumbnail");
  1257.         if ($preValue !== null) {
  1258.             return $preValue;
  1259.         }
  1260.     }
  1261.     $data $this->thumbnail;
  1262.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1263.         return $data->getPlain();
  1264.     }
  1265.     return $data;
  1266. }
  1267. /**
  1268. * Set thumbnail - Thumbnail
  1269. * @param \Pimcore\Model\Asset\Image|null $thumbnail
  1270. * @return \Pimcore\Model\DataObject\Category
  1271. */
  1272. public function setThumbnail($thumbnail)
  1273. {
  1274.     $this->thumbnail $thumbnail;
  1275.     return $this;
  1276. }
  1277. }