var/classes/DataObject/ContactFormRequest.php line 64

Open in your IDE?
  1. <?php 
  2. /** 
  3. * Inheritance: no
  4. * Variants: no
  5. Fields Summary: 
  6. - topic [input]
  7. - firstname [firstname]
  8. - lastname [lastname]
  9. - email [email]
  10. - confirm [consent]
  11. - gender [select]
  12. - message [textarea]
  13. - product [input]
  14. - available [input]
  15. - purchased [input]
  16. - lotNumber [input]
  17. - bestBeforeDate [input]
  18. - orderNumber [input]
  19. - phone [input]
  20. - plz [input]
  21. - city [input]
  22. - street [input]
  23. - code [input]
  24. - upload [manyToManyRelation]
  25. - title [input]
  26. - country [input]
  27. - customerNumber [input]
  28. - retoure [input]
  29. */ 
  30. namespace Pimcore\Model\DataObject;
  31. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  32. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  33. /**
  34. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByTopic ($value, $limit = 0, $offset = 0) 
  35. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByFirstname ($value, $limit = 0, $offset = 0) 
  36. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByLastname ($value, $limit = 0, $offset = 0) 
  37. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByEmail ($value, $limit = 0, $offset = 0) 
  38. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByGender ($value, $limit = 0, $offset = 0) 
  39. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByMessage ($value, $limit = 0, $offset = 0) 
  40. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByProduct ($value, $limit = 0, $offset = 0) 
  41. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByAvailable ($value, $limit = 0, $offset = 0) 
  42. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByPurchased ($value, $limit = 0, $offset = 0) 
  43. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByLotNumber ($value, $limit = 0, $offset = 0) 
  44. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByBestBeforeDate ($value, $limit = 0, $offset = 0) 
  45. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByOrderNumber ($value, $limit = 0, $offset = 0) 
  46. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByPhone ($value, $limit = 0, $offset = 0) 
  47. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByPlz ($value, $limit = 0, $offset = 0) 
  48. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCity ($value, $limit = 0, $offset = 0) 
  49. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByStreet ($value, $limit = 0, $offset = 0) 
  50. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCode ($value, $limit = 0, $offset = 0) 
  51. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByUpload ($value, $limit = 0, $offset = 0) 
  52. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByTitle ($value, $limit = 0, $offset = 0) 
  53. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCountry ($value, $limit = 0, $offset = 0) 
  54. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCustomerNumber ($value, $limit = 0, $offset = 0) 
  55. * @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByRetoure ($value, $limit = 0, $offset = 0) 
  56. */
  57. class ContactFormRequest extends Concrete {
  58. protected $o_classId "14";
  59. protected $o_className "ContactFormRequest";
  60. protected $topic;
  61. protected $firstname;
  62. protected $lastname;
  63. protected $email;
  64. protected $confirm;
  65. protected $gender;
  66. protected $message;
  67. protected $product;
  68. protected $available;
  69. protected $purchased;
  70. protected $lotNumber;
  71. protected $bestBeforeDate;
  72. protected $orderNumber;
  73. protected $phone;
  74. protected $plz;
  75. protected $city;
  76. protected $street;
  77. protected $code;
  78. protected $upload;
  79. protected $title;
  80. protected $country;
  81. protected $customerNumber;
  82. protected $retoure;
  83. /**
  84. * @param array $values
  85. * @return \Pimcore\Model\DataObject\ContactFormRequest
  86. */
  87. public static function create($values = array()) {
  88.     $object = new static();
  89.     $object->setValues($values);
  90.     return $object;
  91. }
  92. /**
  93. * Get topic - topic
  94. * @return string|null
  95. */
  96. public function getTopic () {
  97.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  98.         $preValue $this->preGetValue("topic"); 
  99.         if($preValue !== null) { 
  100.             return $preValue;
  101.         }
  102.     } 
  103.     $data $this->topic;
  104.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  105.             return $data->getPlain();
  106.     }
  107.     return $data;
  108. }
  109. /**
  110. * Set topic - topic
  111. * @param string|null $topic
  112. * @return \Pimcore\Model\DataObject\ContactFormRequest
  113. */
  114. public function setTopic ($topic) {
  115.     $fd $this->getClass()->getFieldDefinition("topic");
  116.     $this->topic $topic;
  117.     return $this;
  118. }
  119. /**
  120. * Get firstname - Firstname
  121. * @return string|null
  122. */
  123. public function getFirstname () {
  124.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  125.         $preValue $this->preGetValue("firstname"); 
  126.         if($preValue !== null) { 
  127.             return $preValue;
  128.         }
  129.     } 
  130.     $data $this->firstname;
  131.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  132.             return $data->getPlain();
  133.     }
  134.     return $data;
  135. }
  136. /**
  137. * Set firstname - Firstname
  138. * @param string|null $firstname
  139. * @return \Pimcore\Model\DataObject\ContactFormRequest
  140. */
  141. public function setFirstname ($firstname) {
  142.     $fd $this->getClass()->getFieldDefinition("firstname");
  143.     $this->firstname $firstname;
  144.     return $this;
  145. }
  146. /**
  147. * Get lastname - Lastname
  148. * @return string|null
  149. */
  150. public function getLastname () {
  151.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  152.         $preValue $this->preGetValue("lastname"); 
  153.         if($preValue !== null) { 
  154.             return $preValue;
  155.         }
  156.     } 
  157.     $data $this->lastname;
  158.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  159.             return $data->getPlain();
  160.     }
  161.     return $data;
  162. }
  163. /**
  164. * Set lastname - Lastname
  165. * @param string|null $lastname
  166. * @return \Pimcore\Model\DataObject\ContactFormRequest
  167. */
  168. public function setLastname ($lastname) {
  169.     $fd $this->getClass()->getFieldDefinition("lastname");
  170.     $this->lastname $lastname;
  171.     return $this;
  172. }
  173. /**
  174. * Get email - Email
  175. * @return string|null
  176. */
  177. public function getEmail () {
  178.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  179.         $preValue $this->preGetValue("email"); 
  180.         if($preValue !== null) { 
  181.             return $preValue;
  182.         }
  183.     } 
  184.     $data $this->email;
  185.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  186.             return $data->getPlain();
  187.     }
  188.     return $data;
  189. }
  190. /**
  191. * Set email - Email
  192. * @param string|null $email
  193. * @return \Pimcore\Model\DataObject\ContactFormRequest
  194. */
  195. public function setEmail ($email) {
  196.     $fd $this->getClass()->getFieldDefinition("email");
  197.     $this->email $email;
  198.     return $this;
  199. }
  200. /**
  201. * Get confirm - confirm
  202. * @return \Pimcore\Model\DataObject\Data\Consent|null
  203. */
  204. public function getConfirm () {
  205.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  206.         $preValue $this->preGetValue("confirm"); 
  207.         if($preValue !== null) { 
  208.             return $preValue;
  209.         }
  210.     } 
  211.     $data $this->confirm;
  212.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  213.             return $data->getPlain();
  214.     }
  215.     return $data;
  216. }
  217. /**
  218. * Set confirm - confirm
  219. * @param \Pimcore\Model\DataObject\Data\Consent|null $confirm
  220. * @return \Pimcore\Model\DataObject\ContactFormRequest
  221. */
  222. public function setConfirm ($confirm) {
  223.     $fd $this->getClass()->getFieldDefinition("confirm");
  224.     $this->confirm $confirm;
  225.     return $this;
  226. }
  227. /**
  228. * Get gender - Gender
  229. * @return string|null
  230. */
  231. public function getGender () {
  232.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  233.         $preValue $this->preGetValue("gender"); 
  234.         if($preValue !== null) { 
  235.             return $preValue;
  236.         }
  237.     } 
  238.     $data $this->gender;
  239.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  240.             return $data->getPlain();
  241.     }
  242.     return $data;
  243. }
  244. /**
  245. * Set gender - Gender
  246. * @param string|null $gender
  247. * @return \Pimcore\Model\DataObject\ContactFormRequest
  248. */
  249. public function setGender ($gender) {
  250.     $fd $this->getClass()->getFieldDefinition("gender");
  251.     $this->gender $gender;
  252.     return $this;
  253. }
  254. /**
  255. * Get message - message
  256. * @return string|null
  257. */
  258. public function getMessage () {
  259.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  260.         $preValue $this->preGetValue("message"); 
  261.         if($preValue !== null) { 
  262.             return $preValue;
  263.         }
  264.     } 
  265.     $data $this->message;
  266.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  267.             return $data->getPlain();
  268.     }
  269.     return $data;
  270. }
  271. /**
  272. * Set message - message
  273. * @param string|null $message
  274. * @return \Pimcore\Model\DataObject\ContactFormRequest
  275. */
  276. public function setMessage ($message) {
  277.     $fd $this->getClass()->getFieldDefinition("message");
  278.     $this->message $message;
  279.     return $this;
  280. }
  281. /**
  282. * Get product - product
  283. * @return string|null
  284. */
  285. public function getProduct () {
  286.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  287.         $preValue $this->preGetValue("product"); 
  288.         if($preValue !== null) { 
  289.             return $preValue;
  290.         }
  291.     } 
  292.     $data $this->product;
  293.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  294.             return $data->getPlain();
  295.     }
  296.     return $data;
  297. }
  298. /**
  299. * Set product - product
  300. * @param string|null $product
  301. * @return \Pimcore\Model\DataObject\ContactFormRequest
  302. */
  303. public function setProduct ($product) {
  304.     $fd $this->getClass()->getFieldDefinition("product");
  305.     $this->product $product;
  306.     return $this;
  307. }
  308. /**
  309. * Get available - available
  310. * @return string|null
  311. */
  312. public function getAvailable () {
  313.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  314.         $preValue $this->preGetValue("available"); 
  315.         if($preValue !== null) { 
  316.             return $preValue;
  317.         }
  318.     } 
  319.     $data $this->available;
  320.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  321.             return $data->getPlain();
  322.     }
  323.     return $data;
  324. }
  325. /**
  326. * Set available - available
  327. * @param string|null $available
  328. * @return \Pimcore\Model\DataObject\ContactFormRequest
  329. */
  330. public function setAvailable ($available) {
  331.     $fd $this->getClass()->getFieldDefinition("available");
  332.     $this->available $available;
  333.     return $this;
  334. }
  335. /**
  336. * Get purchased - gekauft
  337. * @return string|null
  338. */
  339. public function getPurchased () {
  340.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  341.         $preValue $this->preGetValue("purchased"); 
  342.         if($preValue !== null) { 
  343.             return $preValue;
  344.         }
  345.     } 
  346.     $data $this->purchased;
  347.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  348.             return $data->getPlain();
  349.     }
  350.     return $data;
  351. }
  352. /**
  353. * Set purchased - gekauft
  354. * @param string|null $purchased
  355. * @return \Pimcore\Model\DataObject\ContactFormRequest
  356. */
  357. public function setPurchased ($purchased) {
  358.     $fd $this->getClass()->getFieldDefinition("purchased");
  359.     $this->purchased $purchased;
  360.     return $this;
  361. }
  362. /**
  363. * Get lotNumber - lot
  364. * @return string|null
  365. */
  366. public function getLotNumber () {
  367.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  368.         $preValue $this->preGetValue("lotNumber"); 
  369.         if($preValue !== null) { 
  370.             return $preValue;
  371.         }
  372.     } 
  373.     $data $this->lotNumber;
  374.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  375.             return $data->getPlain();
  376.     }
  377.     return $data;
  378. }
  379. /**
  380. * Set lotNumber - lot
  381. * @param string|null $lotNumber
  382. * @return \Pimcore\Model\DataObject\ContactFormRequest
  383. */
  384. public function setLotNumber ($lotNumber) {
  385.     $fd $this->getClass()->getFieldDefinition("lotNumber");
  386.     $this->lotNumber $lotNumber;
  387.     return $this;
  388. }
  389. /**
  390. * Get bestBeforeDate - mhd
  391. * @return string|null
  392. */
  393. public function getBestBeforeDate () {
  394.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  395.         $preValue $this->preGetValue("bestBeforeDate"); 
  396.         if($preValue !== null) { 
  397.             return $preValue;
  398.         }
  399.     } 
  400.     $data $this->bestBeforeDate;
  401.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  402.             return $data->getPlain();
  403.     }
  404.     return $data;
  405. }
  406. /**
  407. * Set bestBeforeDate - mhd
  408. * @param string|null $bestBeforeDate
  409. * @return \Pimcore\Model\DataObject\ContactFormRequest
  410. */
  411. public function setBestBeforeDate ($bestBeforeDate) {
  412.     $fd $this->getClass()->getFieldDefinition("bestBeforeDate");
  413.     $this->bestBeforeDate $bestBeforeDate;
  414.     return $this;
  415. }
  416. /**
  417. * Get orderNumber - bestellnummer
  418. * @return string|null
  419. */
  420. public function getOrderNumber () {
  421.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  422.         $preValue $this->preGetValue("orderNumber"); 
  423.         if($preValue !== null) { 
  424.             return $preValue;
  425.         }
  426.     } 
  427.     $data $this->orderNumber;
  428.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  429.             return $data->getPlain();
  430.     }
  431.     return $data;
  432. }
  433. /**
  434. * Set orderNumber - bestellnummer
  435. * @param string|null $orderNumber
  436. * @return \Pimcore\Model\DataObject\ContactFormRequest
  437. */
  438. public function setOrderNumber ($orderNumber) {
  439.     $fd $this->getClass()->getFieldDefinition("orderNumber");
  440.     $this->orderNumber $orderNumber;
  441.     return $this;
  442. }
  443. /**
  444. * Get phone - telefon
  445. * @return string|null
  446. */
  447. public function getPhone () {
  448.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  449.         $preValue $this->preGetValue("phone"); 
  450.         if($preValue !== null) { 
  451.             return $preValue;
  452.         }
  453.     } 
  454.     $data $this->phone;
  455.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  456.             return $data->getPlain();
  457.     }
  458.     return $data;
  459. }
  460. /**
  461. * Set phone - telefon
  462. * @param string|null $phone
  463. * @return \Pimcore\Model\DataObject\ContactFormRequest
  464. */
  465. public function setPhone ($phone) {
  466.     $fd $this->getClass()->getFieldDefinition("phone");
  467.     $this->phone $phone;
  468.     return $this;
  469. }
  470. /**
  471. * Get plz - plz
  472. * @return string|null
  473. */
  474. public function getPlz () {
  475.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  476.         $preValue $this->preGetValue("plz"); 
  477.         if($preValue !== null) { 
  478.             return $preValue;
  479.         }
  480.     } 
  481.     $data $this->plz;
  482.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  483.             return $data->getPlain();
  484.     }
  485.     return $data;
  486. }
  487. /**
  488. * Set plz - plz
  489. * @param string|null $plz
  490. * @return \Pimcore\Model\DataObject\ContactFormRequest
  491. */
  492. public function setPlz ($plz) {
  493.     $fd $this->getClass()->getFieldDefinition("plz");
  494.     $this->plz $plz;
  495.     return $this;
  496. }
  497. /**
  498. * Get city - city
  499. * @return string|null
  500. */
  501. public function getCity () {
  502.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  503.         $preValue $this->preGetValue("city"); 
  504.         if($preValue !== null) { 
  505.             return $preValue;
  506.         }
  507.     } 
  508.     $data $this->city;
  509.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  510.             return $data->getPlain();
  511.     }
  512.     return $data;
  513. }
  514. /**
  515. * Set city - city
  516. * @param string|null $city
  517. * @return \Pimcore\Model\DataObject\ContactFormRequest
  518. */
  519. public function setCity ($city) {
  520.     $fd $this->getClass()->getFieldDefinition("city");
  521.     $this->city $city;
  522.     return $this;
  523. }
  524. /**
  525. * Get street - street
  526. * @return string|null
  527. */
  528. public function getStreet () {
  529.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  530.         $preValue $this->preGetValue("street"); 
  531.         if($preValue !== null) { 
  532.             return $preValue;
  533.         }
  534.     } 
  535.     $data $this->street;
  536.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  537.             return $data->getPlain();
  538.     }
  539.     return $data;
  540. }
  541. /**
  542. * Set street - street
  543. * @param string|null $street
  544. * @return \Pimcore\Model\DataObject\ContactFormRequest
  545. */
  546. public function setStreet ($street) {
  547.     $fd $this->getClass()->getFieldDefinition("street");
  548.     $this->street $street;
  549.     return $this;
  550. }
  551. /**
  552. * Get code - code
  553. * @return string|null
  554. */
  555. public function getCode () {
  556.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  557.         $preValue $this->preGetValue("code"); 
  558.         if($preValue !== null) { 
  559.             return $preValue;
  560.         }
  561.     } 
  562.     $data $this->code;
  563.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  564.             return $data->getPlain();
  565.     }
  566.     return $data;
  567. }
  568. /**
  569. * Set code - code
  570. * @param string|null $code
  571. * @return \Pimcore\Model\DataObject\ContactFormRequest
  572. */
  573. public function setCode ($code) {
  574.     $fd $this->getClass()->getFieldDefinition("code");
  575.     $this->code $code;
  576.     return $this;
  577. }
  578. /**
  579. * Get upload - upload
  580. * @return \Pimcore\Model\Asset[]
  581. */
  582. public function getUpload () {
  583.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  584.         $preValue $this->preGetValue("upload"); 
  585.         if($preValue !== null) { 
  586.             return $preValue;
  587.         }
  588.     } 
  589.     $data $this->getClass()->getFieldDefinition("upload")->preGetData($this);
  590.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  591.             return $data->getPlain();
  592.     }
  593.     return $data;
  594. }
  595. /**
  596. * Set upload - upload
  597. * @param \Pimcore\Model\Asset[] $upload
  598. * @return \Pimcore\Model\DataObject\ContactFormRequest
  599. */
  600. public function setUpload ($upload) {
  601.     $fd $this->getClass()->getFieldDefinition("upload");
  602.     $hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  603.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  604.     $currentData $this->getUpload();
  605.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  606.     $isEqual $fd->isEqual($currentData$upload);
  607.     if (!$isEqual) {
  608.         $this->markFieldDirty("upload"true);
  609.     }
  610.     $this->upload $fd->preSetData($this$upload);
  611.     return $this;
  612. }
  613. /**
  614. * Get title - title
  615. * @return string|null
  616. */
  617. public function getTitle () {
  618.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  619.         $preValue $this->preGetValue("title"); 
  620.         if($preValue !== null) { 
  621.             return $preValue;
  622.         }
  623.     } 
  624.     $data $this->title;
  625.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  626.             return $data->getPlain();
  627.     }
  628.     return $data;
  629. }
  630. /**
  631. * Set title - title
  632. * @param string|null $title
  633. * @return \Pimcore\Model\DataObject\ContactFormRequest
  634. */
  635. public function setTitle ($title) {
  636.     $fd $this->getClass()->getFieldDefinition("title");
  637.     $this->title $title;
  638.     return $this;
  639. }
  640. /**
  641. * Get country - country
  642. * @return string|null
  643. */
  644. public function getCountry () {
  645.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  646.         $preValue $this->preGetValue("country"); 
  647.         if($preValue !== null) { 
  648.             return $preValue;
  649.         }
  650.     } 
  651.     $data $this->country;
  652.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  653.             return $data->getPlain();
  654.     }
  655.     return $data;
  656. }
  657. /**
  658. * Set country - country
  659. * @param string|null $country
  660. * @return \Pimcore\Model\DataObject\ContactFormRequest
  661. */
  662. public function setCountry ($country) {
  663.     $fd $this->getClass()->getFieldDefinition("country");
  664.     $this->country $country;
  665.     return $this;
  666. }
  667. /**
  668. * Get customerNumber - Kundennummer
  669. * @return string|null
  670. */
  671. public function getCustomerNumber () {
  672.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  673.         $preValue $this->preGetValue("customerNumber"); 
  674.         if($preValue !== null) { 
  675.             return $preValue;
  676.         }
  677.     } 
  678.     $data $this->customerNumber;
  679.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  680.             return $data->getPlain();
  681.     }
  682.     return $data;
  683. }
  684. /**
  685. * Set customerNumber - Kundennummer
  686. * @param string|null $customerNumber
  687. * @return \Pimcore\Model\DataObject\ContactFormRequest
  688. */
  689. public function setCustomerNumber ($customerNumber) {
  690.     $fd $this->getClass()->getFieldDefinition("customerNumber");
  691.     $this->customerNumber $customerNumber;
  692.     return $this;
  693. }
  694. /**
  695. * Get retoure - Rücksendung / Versand
  696. * @return string|null
  697. */
  698. public function getRetoure () {
  699.     if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) { 
  700.         $preValue $this->preGetValue("retoure"); 
  701.         if($preValue !== null) { 
  702.             return $preValue;
  703.         }
  704.     } 
  705.     $data $this->retoure;
  706.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  707.             return $data->getPlain();
  708.     }
  709.     return $data;
  710. }
  711. /**
  712. * Set retoure - Rücksendung / Versand
  713. * @param string|null $retoure
  714. * @return \Pimcore\Model\DataObject\ContactFormRequest
  715. */
  716. public function setRetoure ($retoure) {
  717.     $fd $this->getClass()->getFieldDefinition("retoure");
  718.     $this->retoure $retoure;
  719.     return $this;
  720. }
  721. }