var/classes/DataObject/Brand.php line 840

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - disable_in_navigation [checkbox]
  8.  * - show_in_brand_slider [checkbox]
  9.  * - unique_key [input]
  10.  * - name [input]
  11.  * - seo_page_title [input]
  12.  * - seo_heading [input]
  13.  * - brand_slider_position [numeric]
  14.  * - description [textarea]
  15.  * - short_description [textarea]
  16.  * - meta_title [input]
  17.  * - meta_keywords [input]
  18.  * - meta_description [input]
  19.  * - zsdev_robots [input]
  20.  * - zsdev_canonical [input]
  21.  * - zsdev_include_in_sitemap [select]
  22.  * - zsdev_robots_pagination [input]
  23.  * - zsdev_canonical_pagination [input]
  24.  * - zsdev_include_in_sitemap_pagination [select]
  25.  * - main_image [image]
  26.  * - small_image [image]
  27.  * - alt [input]
  28.  * - sites [manyToManyObjectRelation]
  29.  * - shipping_level [select]
  30.  * - shipping_time [select]
  31.  * - categorylevels [block]
  32.  * -- category [manyToOneRelation]
  33.  * -- shipping_level [select]
  34.  * -- shipping_time [select]
  35.  */
  36. namespace Pimcore\Model\DataObject;
  37. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  38. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  39. /**
  40. * @method static \Pimcore\Model\DataObject\Brand\Listing getList(array $config = [])
  41. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByDisable_in_navigation($value, $limit = 0, $offset = 0, $objectTypes = null)
  42. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByShow_in_brand_slider($value, $limit = 0, $offset = 0, $objectTypes = null)
  43. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByUnique_key($value, $limit = 0, $offset = 0, $objectTypes = null)
  44. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
  45. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getBySeo_page_title($value, $limit = 0, $offset = 0, $objectTypes = null)
  46. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getBySeo_heading($value, $limit = 0, $offset = 0, $objectTypes = null)
  47. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByBrand_slider_position($value, $limit = 0, $offset = 0, $objectTypes = null)
  48. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  49. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByShort_description($value, $limit = 0, $offset = 0, $objectTypes = null)
  50. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByMeta_title($value, $limit = 0, $offset = 0, $objectTypes = null)
  51. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByMeta_keywords($value, $limit = 0, $offset = 0, $objectTypes = null)
  52. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByMeta_description($value, $limit = 0, $offset = 0, $objectTypes = null)
  53. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByZsdev_robots($value, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByZsdev_canonical($value, $limit = 0, $offset = 0, $objectTypes = null)
  55. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByZsdev_include_in_sitemap($value, $limit = 0, $offset = 0, $objectTypes = null)
  56. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByZsdev_robots_pagination($value, $limit = 0, $offset = 0, $objectTypes = null)
  57. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByZsdev_canonical_pagination($value, $limit = 0, $offset = 0, $objectTypes = null)
  58. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByZsdev_include_in_sitemap_pagination($value, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByMain_image($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getBySmall_image($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByAlt($value, $limit = 0, $offset = 0, $objectTypes = null)
  62. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getBySites($value, $limit = 0, $offset = 0, $objectTypes = null)
  63. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByShipping_level($value, $limit = 0, $offset = 0, $objectTypes = null)
  64. * @method static \Pimcore\Model\DataObject\Brand\Listing|\Pimcore\Model\DataObject\Brand|null getByShipping_time($value, $limit = 0, $offset = 0, $objectTypes = null)
  65. */
  66. class Brand extends Concrete
  67. {
  68. protected $o_classId "4";
  69. protected $o_className "Brand";
  70. protected $disable_in_navigation;
  71. protected $show_in_brand_slider;
  72. protected $unique_key;
  73. protected $name;
  74. protected $seo_page_title;
  75. protected $seo_heading;
  76. protected $brand_slider_position;
  77. protected $description;
  78. protected $short_description;
  79. protected $meta_title;
  80. protected $meta_keywords;
  81. protected $meta_description;
  82. protected $zsdev_robots;
  83. protected $zsdev_canonical;
  84. protected $zsdev_include_in_sitemap;
  85. protected $zsdev_robots_pagination;
  86. protected $zsdev_canonical_pagination;
  87. protected $zsdev_include_in_sitemap_pagination;
  88. protected $main_image;
  89. protected $small_image;
  90. protected $alt;
  91. protected $sites;
  92. protected $shipping_level;
  93. protected $shipping_time;
  94. protected $categorylevels;
  95. /**
  96. * @param array $values
  97. * @return \Pimcore\Model\DataObject\Brand
  98. */
  99. public static function create($values = array()) {
  100.     $object = new static();
  101.     $object->setValues($values);
  102.     return $object;
  103. }
  104. /**
  105. * Get disable_in_navigation - Makni iz navigacije
  106. * @return bool|null
  107. */
  108. public function getDisable_in_navigation()
  109. {
  110.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  111.         $preValue $this->preGetValue("disable_in_navigation");
  112.         if ($preValue !== null) {
  113.             return $preValue;
  114.         }
  115.     }
  116.     $data $this->disable_in_navigation;
  117.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  118.         return $data->getPlain();
  119.     }
  120.     return $data;
  121. }
  122. /**
  123. * Set disable_in_navigation - Makni iz navigacije
  124. * @param bool|null $disable_in_navigation
  125. * @return \Pimcore\Model\DataObject\Brand
  126. */
  127. public function setDisable_in_navigation($disable_in_navigation)
  128. {
  129.     $this->disable_in_navigation $disable_in_navigation;
  130.     return $this;
  131. }
  132. /**
  133. * Get show_in_brand_slider - Prikaži u slideru branda
  134. * @return bool|null
  135. */
  136. public function getShow_in_brand_slider()
  137. {
  138.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  139.         $preValue $this->preGetValue("show_in_brand_slider");
  140.         if ($preValue !== null) {
  141.             return $preValue;
  142.         }
  143.     }
  144.     $data $this->show_in_brand_slider;
  145.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  146.         return $data->getPlain();
  147.     }
  148.     return $data;
  149. }
  150. /**
  151. * Set show_in_brand_slider - Prikaži u slideru branda
  152. * @param bool|null $show_in_brand_slider
  153. * @return \Pimcore\Model\DataObject\Brand
  154. */
  155. public function setShow_in_brand_slider($show_in_brand_slider)
  156. {
  157.     $this->show_in_brand_slider $show_in_brand_slider;
  158.     return $this;
  159. }
  160. /**
  161. * Get unique_key - Key
  162. * @return string|null
  163. */
  164. public function getUnique_key()
  165. {
  166.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  167.         $preValue $this->preGetValue("unique_key");
  168.         if ($preValue !== null) {
  169.             return $preValue;
  170.         }
  171.     }
  172.     $data $this->unique_key;
  173.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  174.         return $data->getPlain();
  175.     }
  176.     return $data;
  177. }
  178. /**
  179. * Set unique_key - Key
  180. * @param string|null $unique_key
  181. * @return \Pimcore\Model\DataObject\Brand
  182. */
  183. public function setUnique_key($unique_key)
  184. {
  185.     $this->unique_key $unique_key;
  186.     return $this;
  187. }
  188. /**
  189. * Get name - Naziv
  190. * @return string|null
  191. */
  192. public function getName()
  193. {
  194.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  195.         $preValue $this->preGetValue("name");
  196.         if ($preValue !== null) {
  197.             return $preValue;
  198.         }
  199.     }
  200.     $data $this->name;
  201.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  202.         return $data->getPlain();
  203.     }
  204.     return $data;
  205. }
  206. /**
  207. * Set name - Naziv
  208. * @param string|null $name
  209. * @return \Pimcore\Model\DataObject\Brand
  210. */
  211. public function setName($name)
  212. {
  213.     $this->name $name;
  214.     return $this;
  215. }
  216. /**
  217. * Get seo_page_title - SEO Page Title
  218. * @return string|null
  219. */
  220. public function getSeo_page_title()
  221. {
  222.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  223.         $preValue $this->preGetValue("seo_page_title");
  224.         if ($preValue !== null) {
  225.             return $preValue;
  226.         }
  227.     }
  228.     $data $this->seo_page_title;
  229.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  230.         return $data->getPlain();
  231.     }
  232.     return $data;
  233. }
  234. /**
  235. * Set seo_page_title - SEO Page Title
  236. * @param string|null $seo_page_title
  237. * @return \Pimcore\Model\DataObject\Brand
  238. */
  239. public function setSeo_page_title($seo_page_title)
  240. {
  241.     $this->seo_page_title $seo_page_title;
  242.     return $this;
  243. }
  244. /**
  245. * Get seo_heading - SEO H1 heading
  246. * @return string|null
  247. */
  248. public function getSeo_heading()
  249. {
  250.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  251.         $preValue $this->preGetValue("seo_heading");
  252.         if ($preValue !== null) {
  253.             return $preValue;
  254.         }
  255.     }
  256.     $data $this->seo_heading;
  257.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  258.         return $data->getPlain();
  259.     }
  260.     return $data;
  261. }
  262. /**
  263. * Set seo_heading - SEO H1 heading
  264. * @param string|null $seo_heading
  265. * @return \Pimcore\Model\DataObject\Brand
  266. */
  267. public function setSeo_heading($seo_heading)
  268. {
  269.     $this->seo_heading $seo_heading;
  270.     return $this;
  271. }
  272. /**
  273. * Get brand_slider_position - Pozicija na brand slideru
  274. * @return float|null
  275. */
  276. public function getBrand_slider_position()
  277. {
  278.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  279.         $preValue $this->preGetValue("brand_slider_position");
  280.         if ($preValue !== null) {
  281.             return $preValue;
  282.         }
  283.     }
  284.     $data $this->brand_slider_position;
  285.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  286.         return $data->getPlain();
  287.     }
  288.     return $data;
  289. }
  290. /**
  291. * Set brand_slider_position - Pozicija na brand slideru
  292. * @param float|null $brand_slider_position
  293. * @return \Pimcore\Model\DataObject\Brand
  294. */
  295. public function setBrand_slider_position($brand_slider_position)
  296. {
  297.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  298.     $fd $this->getClass()->getFieldDefinition("brand_slider_position");
  299.     $this->brand_slider_position $fd->preSetData($this$brand_slider_position);
  300.     return $this;
  301. }
  302. /**
  303. * Get description - Opis
  304. * @return string|null
  305. */
  306. public function getDescription()
  307. {
  308.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  309.         $preValue $this->preGetValue("description");
  310.         if ($preValue !== null) {
  311.             return $preValue;
  312.         }
  313.     }
  314.     $data $this->description;
  315.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  316.         return $data->getPlain();
  317.     }
  318.     return $data;
  319. }
  320. /**
  321. * Set description - Opis
  322. * @param string|null $description
  323. * @return \Pimcore\Model\DataObject\Brand
  324. */
  325. public function setDescription($description)
  326. {
  327.     $this->description $description;
  328.     return $this;
  329. }
  330. /**
  331. * Get short_description - Kratak opis
  332. * @return string|null
  333. */
  334. public function getShort_description()
  335. {
  336.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  337.         $preValue $this->preGetValue("short_description");
  338.         if ($preValue !== null) {
  339.             return $preValue;
  340.         }
  341.     }
  342.     $data $this->short_description;
  343.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  344.         return $data->getPlain();
  345.     }
  346.     return $data;
  347. }
  348. /**
  349. * Set short_description - Kratak opis
  350. * @param string|null $short_description
  351. * @return \Pimcore\Model\DataObject\Brand
  352. */
  353. public function setShort_description($short_description)
  354. {
  355.     $this->short_description $short_description;
  356.     return $this;
  357. }
  358. /**
  359. * Get meta_title - Meta title
  360. * @return string|null
  361. */
  362. public function getMeta_title()
  363. {
  364.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  365.         $preValue $this->preGetValue("meta_title");
  366.         if ($preValue !== null) {
  367.             return $preValue;
  368.         }
  369.     }
  370.     $data $this->meta_title;
  371.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  372.         return $data->getPlain();
  373.     }
  374.     return $data;
  375. }
  376. /**
  377. * Set meta_title - Meta title
  378. * @param string|null $meta_title
  379. * @return \Pimcore\Model\DataObject\Brand
  380. */
  381. public function setMeta_title($meta_title)
  382. {
  383.     $this->meta_title $meta_title;
  384.     return $this;
  385. }
  386. /**
  387. * Get meta_keywords - Meta keywords
  388. * @return string|null
  389. */
  390. public function getMeta_keywords()
  391. {
  392.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  393.         $preValue $this->preGetValue("meta_keywords");
  394.         if ($preValue !== null) {
  395.             return $preValue;
  396.         }
  397.     }
  398.     $data $this->meta_keywords;
  399.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  400.         return $data->getPlain();
  401.     }
  402.     return $data;
  403. }
  404. /**
  405. * Set meta_keywords - Meta keywords
  406. * @param string|null $meta_keywords
  407. * @return \Pimcore\Model\DataObject\Brand
  408. */
  409. public function setMeta_keywords($meta_keywords)
  410. {
  411.     $this->meta_keywords $meta_keywords;
  412.     return $this;
  413. }
  414. /**
  415. * Get meta_description - Meta description
  416. * @return string|null
  417. */
  418. public function getMeta_description()
  419. {
  420.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  421.         $preValue $this->preGetValue("meta_description");
  422.         if ($preValue !== null) {
  423.             return $preValue;
  424.         }
  425.     }
  426.     $data $this->meta_description;
  427.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  428.         return $data->getPlain();
  429.     }
  430.     return $data;
  431. }
  432. /**
  433. * Set meta_description - Meta description
  434. * @param string|null $meta_description
  435. * @return \Pimcore\Model\DataObject\Brand
  436. */
  437. public function setMeta_description($meta_description)
  438. {
  439.     $this->meta_description $meta_description;
  440.     return $this;
  441. }
  442. /**
  443. * Get zsdev_robots - Robots
  444. * @return string|null
  445. */
  446. public function getZsdev_robots()
  447. {
  448.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  449.         $preValue $this->preGetValue("zsdev_robots");
  450.         if ($preValue !== null) {
  451.             return $preValue;
  452.         }
  453.     }
  454.     $data $this->zsdev_robots;
  455.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  456.         return $data->getPlain();
  457.     }
  458.     return $data;
  459. }
  460. /**
  461. * Set zsdev_robots - Robots
  462. * @param string|null $zsdev_robots
  463. * @return \Pimcore\Model\DataObject\Brand
  464. */
  465. public function setZsdev_robots($zsdev_robots)
  466. {
  467.     $this->zsdev_robots $zsdev_robots;
  468.     return $this;
  469. }
  470. /**
  471. * Get zsdev_canonical - Canonical
  472. * @return string|null
  473. */
  474. public function getZsdev_canonical()
  475. {
  476.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  477.         $preValue $this->preGetValue("zsdev_canonical");
  478.         if ($preValue !== null) {
  479.             return $preValue;
  480.         }
  481.     }
  482.     $data $this->zsdev_canonical;
  483.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  484.         return $data->getPlain();
  485.     }
  486.     return $data;
  487. }
  488. /**
  489. * Set zsdev_canonical - Canonical
  490. * @param string|null $zsdev_canonical
  491. * @return \Pimcore\Model\DataObject\Brand
  492. */
  493. public function setZsdev_canonical($zsdev_canonical)
  494. {
  495.     $this->zsdev_canonical $zsdev_canonical;
  496.     return $this;
  497. }
  498. /**
  499. * Get zsdev_include_in_sitemap - Include in sitemap
  500. * @return string|null
  501. */
  502. public function getZsdev_include_in_sitemap()
  503. {
  504.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  505.         $preValue $this->preGetValue("zsdev_include_in_sitemap");
  506.         if ($preValue !== null) {
  507.             return $preValue;
  508.         }
  509.     }
  510.     $data $this->zsdev_include_in_sitemap;
  511.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  512.         return $data->getPlain();
  513.     }
  514.     return $data;
  515. }
  516. /**
  517. * Set zsdev_include_in_sitemap - Include in sitemap
  518. * @param string|null $zsdev_include_in_sitemap
  519. * @return \Pimcore\Model\DataObject\Brand
  520. */
  521. public function setZsdev_include_in_sitemap($zsdev_include_in_sitemap)
  522. {
  523.     $this->zsdev_include_in_sitemap $zsdev_include_in_sitemap;
  524.     return $this;
  525. }
  526. /**
  527. * Get zsdev_robots_pagination - Robots (pagination)
  528. * @return string|null
  529. */
  530. public function getZsdev_robots_pagination()
  531. {
  532.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  533.         $preValue $this->preGetValue("zsdev_robots_pagination");
  534.         if ($preValue !== null) {
  535.             return $preValue;
  536.         }
  537.     }
  538.     $data $this->zsdev_robots_pagination;
  539.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  540.         return $data->getPlain();
  541.     }
  542.     return $data;
  543. }
  544. /**
  545. * Set zsdev_robots_pagination - Robots (pagination)
  546. * @param string|null $zsdev_robots_pagination
  547. * @return \Pimcore\Model\DataObject\Brand
  548. */
  549. public function setZsdev_robots_pagination($zsdev_robots_pagination)
  550. {
  551.     $this->zsdev_robots_pagination $zsdev_robots_pagination;
  552.     return $this;
  553. }
  554. /**
  555. * Get zsdev_canonical_pagination - Canonical (pagination)
  556. * @return string|null
  557. */
  558. public function getZsdev_canonical_pagination()
  559. {
  560.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  561.         $preValue $this->preGetValue("zsdev_canonical_pagination");
  562.         if ($preValue !== null) {
  563.             return $preValue;
  564.         }
  565.     }
  566.     $data $this->zsdev_canonical_pagination;
  567.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  568.         return $data->getPlain();
  569.     }
  570.     return $data;
  571. }
  572. /**
  573. * Set zsdev_canonical_pagination - Canonical (pagination)
  574. * @param string|null $zsdev_canonical_pagination
  575. * @return \Pimcore\Model\DataObject\Brand
  576. */
  577. public function setZsdev_canonical_pagination($zsdev_canonical_pagination)
  578. {
  579.     $this->zsdev_canonical_pagination $zsdev_canonical_pagination;
  580.     return $this;
  581. }
  582. /**
  583. * Get zsdev_include_in_sitemap_pagination - Include in sitemap (pagination)
  584. * @return string|null
  585. */
  586. public function getZsdev_include_in_sitemap_pagination()
  587. {
  588.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  589.         $preValue $this->preGetValue("zsdev_include_in_sitemap_pagination");
  590.         if ($preValue !== null) {
  591.             return $preValue;
  592.         }
  593.     }
  594.     $data $this->zsdev_include_in_sitemap_pagination;
  595.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  596.         return $data->getPlain();
  597.     }
  598.     return $data;
  599. }
  600. /**
  601. * Set zsdev_include_in_sitemap_pagination - Include in sitemap (pagination)
  602. * @param string|null $zsdev_include_in_sitemap_pagination
  603. * @return \Pimcore\Model\DataObject\Brand
  604. */
  605. public function setZsdev_include_in_sitemap_pagination($zsdev_include_in_sitemap_pagination)
  606. {
  607.     $this->zsdev_include_in_sitemap_pagination $zsdev_include_in_sitemap_pagination;
  608.     return $this;
  609. }
  610. /**
  611. * Get main_image - Glavna slika
  612. * @return \Pimcore\Model\Asset\Image|null
  613. */
  614. public function getMain_image()
  615. {
  616.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  617.         $preValue $this->preGetValue("main_image");
  618.         if ($preValue !== null) {
  619.             return $preValue;
  620.         }
  621.     }
  622.     $data $this->main_image;
  623.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  624.         return $data->getPlain();
  625.     }
  626.     return $data;
  627. }
  628. /**
  629. * Set main_image - Glavna slika
  630. * @param \Pimcore\Model\Asset\Image|null $main_image
  631. * @return \Pimcore\Model\DataObject\Brand
  632. */
  633. public function setMain_image($main_image)
  634. {
  635.     $this->main_image $main_image;
  636.     return $this;
  637. }
  638. /**
  639. * Get small_image - Mala slika
  640. * @return \Pimcore\Model\Asset\Image|null
  641. */
  642. public function getSmall_image()
  643. {
  644.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  645.         $preValue $this->preGetValue("small_image");
  646.         if ($preValue !== null) {
  647.             return $preValue;
  648.         }
  649.     }
  650.     $data $this->small_image;
  651.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  652.         return $data->getPlain();
  653.     }
  654.     return $data;
  655. }
  656. /**
  657. * Set small_image - Mala slika
  658. * @param \Pimcore\Model\Asset\Image|null $small_image
  659. * @return \Pimcore\Model\DataObject\Brand
  660. */
  661. public function setSmall_image($small_image)
  662. {
  663.     $this->small_image $small_image;
  664.     return $this;
  665. }
  666. /**
  667. * Get alt - Image alt
  668. * @return string|null
  669. */
  670. public function getAlt()
  671. {
  672.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  673.         $preValue $this->preGetValue("alt");
  674.         if ($preValue !== null) {
  675.             return $preValue;
  676.         }
  677.     }
  678.     $data $this->alt;
  679.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  680.         return $data->getPlain();
  681.     }
  682.     return $data;
  683. }
  684. /**
  685. * Set alt - Image alt
  686. * @param string|null $alt
  687. * @return \Pimcore\Model\DataObject\Brand
  688. */
  689. public function setAlt($alt)
  690. {
  691.     $this->alt $alt;
  692.     return $this;
  693. }
  694. /**
  695. * Get sites - Sites
  696. * @return \Pimcore\Model\DataObject\Site[]
  697. */
  698. public function getSites()
  699. {
  700.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  701.         $preValue $this->preGetValue("sites");
  702.         if ($preValue !== null) {
  703.             return $preValue;
  704.         }
  705.     }
  706.     $data $this->getClass()->getFieldDefinition("sites")->preGetData($this);
  707.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  708.         return $data->getPlain();
  709.     }
  710.     return $data;
  711. }
  712. /**
  713. * Set sites - Sites
  714. * @param \Pimcore\Model\DataObject\Site[] $sites
  715. * @return \Pimcore\Model\DataObject\Brand
  716. */
  717. public function setSites($sites)
  718. {
  719.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  720.     $fd $this->getClass()->getFieldDefinition("sites");
  721.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  722.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  723.     $currentData $this->getSites();
  724.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  725.     $isEqual $fd->isEqual($currentData$sites);
  726.     if (!$isEqual) {
  727.         $this->markFieldDirty("sites"true);
  728.     }
  729.     $this->sites $fd->preSetData($this$sites);
  730.     return $this;
  731. }
  732. /**
  733. * Get shipping_level - Brand Shipping level
  734. * @return string|null
  735. */
  736. public function getShipping_level()
  737. {
  738.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  739.         $preValue $this->preGetValue("shipping_level");
  740.         if ($preValue !== null) {
  741.             return $preValue;
  742.         }
  743.     }
  744.     $data $this->shipping_level;
  745.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  746.         return $data->getPlain();
  747.     }
  748.     return $data;
  749. }
  750. /**
  751. * Set shipping_level - Brand Shipping level
  752. * @param string|null $shipping_level
  753. * @return \Pimcore\Model\DataObject\Brand
  754. */
  755. public function setShipping_level($shipping_level)
  756. {
  757.     $this->shipping_level $shipping_level;
  758.     return $this;
  759. }
  760. /**
  761. * Get shipping_time - Brand Shipping time
  762. * @return string|null
  763. */
  764. public function getShipping_time()
  765. {
  766.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  767.         $preValue $this->preGetValue("shipping_time");
  768.         if ($preValue !== null) {
  769.             return $preValue;
  770.         }
  771.     }
  772.     $data $this->shipping_time;
  773.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  774.         return $data->getPlain();
  775.     }
  776.     return $data;
  777. }
  778. /**
  779. * Set shipping_time - Brand Shipping time
  780. * @param string|null $shipping_time
  781. * @return \Pimcore\Model\DataObject\Brand
  782. */
  783. public function setShipping_time($shipping_time)
  784. {
  785.     $this->shipping_time $shipping_time;
  786.     return $this;
  787. }
  788. /**
  789. * Get categorylevels - Category levels
  790. * @return \Pimcore\Model\DataObject\Data\BlockElement[][]
  791. */
  792. public function getCategorylevels()
  793. {
  794.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  795.         $preValue $this->preGetValue("categorylevels");
  796.         if ($preValue !== null) {
  797.             return $preValue;
  798.         }
  799.     }
  800.     $data $this->getClass()->getFieldDefinition("categorylevels")->preGetData($this);
  801.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  802.         return $data->getPlain();
  803.     }
  804.     return $data;
  805. }
  806. /**
  807. * Set categorylevels - Category levels
  808. * @param \Pimcore\Model\DataObject\Data\BlockElement[][] $categorylevels
  809. * @return \Pimcore\Model\DataObject\Brand
  810. */
  811. public function setCategorylevels($categorylevels)
  812. {
  813.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Block $fd */
  814.     $fd $this->getClass()->getFieldDefinition("categorylevels");
  815.     $this->categorylevels $fd->preSetData($this$categorylevels);
  816.     return $this;
  817. }
  818. }