var/classes/DataObject/Profile.php line 1276

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - profileType [select]
  8.  * - company [input]
  9.  * - gender [gender]
  10.  * - firstname [firstname]
  11.  * - lastname [lastname]
  12.  * - languages [languagemultiselect]
  13.  * - slug [input]
  14.  * - title [select]
  15.  * - VAT [input]
  16.  * - phone [input]
  17.  * - fax [input]
  18.  * - email [email]
  19.  * - website [input]
  20.  * - mobile [input]
  21.  * - street [input]
  22.  * - housenumber [input]
  23.  * - city [input]
  24.  * - postalCode [input]
  25.  * - country [country]
  26.  * - geolocation [geopoint]
  27.  * - geolocationApprox [geopoint]
  28.  * - partner [advancedManyToManyRelation]
  29.  * - team [manyToManyObjectRelation]
  30.  * - description [textarea]
  31.  * - profiles [objectbricks]
  32.  * - primaryProfile [select]
  33.  * - network [manyToManyObjectRelation]
  34.  * - reversedNetwork [reverseObjectRelation]
  35.  * - reversedNews [reverseObjectRelation]
  36.  * - organisations [manyToManyObjectRelation]
  37.  * - socialMedia [structuredTable]
  38.  * - links [structuredTable]
  39.  * - downloads [advancedManyToManyRelation]
  40.  * - username [input]
  41.  * - password [password]
  42.  * - activationToken [input]
  43.  * - resetToken [input]
  44.  * - signUpCompletionState [select]
  45.  * - isStaff [booleanSelect]
  46.  * - roles [multiselect]
  47.  * - abowireUserId [input]
  48.  * - preferredLanguage [language]
  49.  * - color [rgbaColor]
  50.  * - avatar [image]
  51.  * - banner [image]
  52.  */
  53. namespace Pimcore\Model\DataObject;
  54. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  55. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  56. /**
  57. * @method static \Pimcore\Model\DataObject\Profile\Listing getList(array $config = [])
  58. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByProfileType($value, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByCompany($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByGender($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByFirstname($value, $limit = 0, $offset = 0, $objectTypes = null)
  62. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByLastname($value, $limit = 0, $offset = 0, $objectTypes = null)
  63. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByLanguages($value, $limit = 0, $offset = 0, $objectTypes = null)
  64. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getBySlug($value, $limit = 0, $offset = 0, $objectTypes = null)
  65. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
  66. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByVAT($value, $limit = 0, $offset = 0, $objectTypes = null)
  67. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPhone($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByFax($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByWebsite($value, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByMobile($value, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByStreet($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByHousenumber($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByCity($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPostalCode($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPartner($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByTeam($value, $limit = 0, $offset = 0, $objectTypes = null)
  79. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  80. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPrimaryProfile($value, $limit = 0, $offset = 0, $objectTypes = null)
  81. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByNetwork($value, $limit = 0, $offset = 0, $objectTypes = null)
  82. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByReversedNetwork($value, $limit = 0, $offset = 0, $objectTypes = null)
  83. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByReversedNews($value, $limit = 0, $offset = 0, $objectTypes = null)
  84. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByOrganisations($value, $limit = 0, $offset = 0, $objectTypes = null)
  85. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByDownloads($value, $limit = 0, $offset = 0, $objectTypes = null)
  86. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByUsername($value, $limit = 0, $offset = 0, $objectTypes = null)
  87. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByActivationToken($value, $limit = 0, $offset = 0, $objectTypes = null)
  88. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByResetToken($value, $limit = 0, $offset = 0, $objectTypes = null)
  89. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getBySignUpCompletionState($value, $limit = 0, $offset = 0, $objectTypes = null)
  90. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByRoles($value, $limit = 0, $offset = 0, $objectTypes = null)
  91. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByAbowireUserId($value, $limit = 0, $offset = 0, $objectTypes = null)
  92. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPreferredLanguage($value, $limit = 0, $offset = 0, $objectTypes = null)
  93. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByAvatar($value, $limit = 0, $offset = 0, $objectTypes = null)
  94. * @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByBanner($value, $limit = 0, $offset = 0, $objectTypes = null)
  95. */
  96. class Profile extends Concrete
  97. {
  98. protected $o_classId "profile";
  99. protected $o_className "Profile";
  100. protected $profileType;
  101. protected $company;
  102. protected $gender;
  103. protected $firstname;
  104. protected $lastname;
  105. protected $languages;
  106. protected $slug;
  107. protected $title;
  108. protected $VAT;
  109. protected $phone;
  110. protected $fax;
  111. protected $email;
  112. protected $website;
  113. protected $mobile;
  114. protected $street;
  115. protected $housenumber;
  116. protected $city;
  117. protected $postalCode;
  118. protected $country;
  119. protected $geolocation;
  120. protected $geolocationApprox;
  121. protected $partner;
  122. protected $team;
  123. protected $description;
  124. protected $profiles;
  125. protected $primaryProfile;
  126. protected $network;
  127. protected $organisations;
  128. protected $socialMedia;
  129. protected $links;
  130. protected $downloads;
  131. protected $username;
  132. protected $password;
  133. protected $activationToken;
  134. protected $resetToken;
  135. protected $signUpCompletionState;
  136. protected $isStaff;
  137. protected $roles;
  138. protected $abowireUserId;
  139. protected $preferredLanguage;
  140. protected $color;
  141. protected $avatar;
  142. protected $banner;
  143. /**
  144. * @param array $values
  145. * @return \Pimcore\Model\DataObject\Profile
  146. */
  147. public static function create($values = array()) {
  148.     $object = new static();
  149.     $object->setValues($values);
  150.     return $object;
  151. }
  152. /**
  153. * Get profileType - Profilart
  154. * @return string|null
  155. */
  156. public function getProfileType(): ?string
  157. {
  158.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  159.         $preValue $this->preGetValue("profileType");
  160.         if ($preValue !== null) {
  161.             return $preValue;
  162.         }
  163.     }
  164.     $data $this->profileType;
  165.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  166.         return $data->getPlain();
  167.     }
  168.     return $data;
  169. }
  170. /**
  171. * Set profileType - Profilart
  172. * @param string|null $profileType
  173. * @return \Pimcore\Model\DataObject\Profile
  174. */
  175. public function setProfileType(?string $profileType)
  176. {
  177.     $this->profileType $profileType;
  178.     return $this;
  179. }
  180. /**
  181. * Get company - Firma
  182. * @return string|null
  183. */
  184. public function getCompany(): ?string
  185. {
  186.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  187.         $preValue $this->preGetValue("company");
  188.         if ($preValue !== null) {
  189.             return $preValue;
  190.         }
  191.     }
  192.     $data $this->company;
  193.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  194.         return $data->getPlain();
  195.     }
  196.     return $data;
  197. }
  198. /**
  199. * Set company - Firma
  200. * @param string|null $company
  201. * @return \Pimcore\Model\DataObject\Profile
  202. */
  203. public function setCompany(?string $company)
  204. {
  205.     $this->company $company;
  206.     return $this;
  207. }
  208. /**
  209. * Get gender - Geschlecht
  210. * @return string|null
  211. */
  212. public function getGender(): ?string
  213. {
  214.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  215.         $preValue $this->preGetValue("gender");
  216.         if ($preValue !== null) {
  217.             return $preValue;
  218.         }
  219.     }
  220.     $data $this->gender;
  221.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  222.         return $data->getPlain();
  223.     }
  224.     return $data;
  225. }
  226. /**
  227. * Set gender - Geschlecht
  228. * @param string|null $gender
  229. * @return \Pimcore\Model\DataObject\Profile
  230. */
  231. public function setGender(?string $gender)
  232. {
  233.     $this->gender $gender;
  234.     return $this;
  235. }
  236. /**
  237. * Get firstname - Vorname
  238. * @return string|null
  239. */
  240. public function getFirstname(): ?string
  241. {
  242.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  243.         $preValue $this->preGetValue("firstname");
  244.         if ($preValue !== null) {
  245.             return $preValue;
  246.         }
  247.     }
  248.     $data $this->firstname;
  249.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  250.         return $data->getPlain();
  251.     }
  252.     return $data;
  253. }
  254. /**
  255. * Set firstname - Vorname
  256. * @param string|null $firstname
  257. * @return \Pimcore\Model\DataObject\Profile
  258. */
  259. public function setFirstname(?string $firstname)
  260. {
  261.     $this->firstname $firstname;
  262.     return $this;
  263. }
  264. /**
  265. * Get lastname - Nachname
  266. * @return string|null
  267. */
  268. public function getLastname(): ?string
  269. {
  270.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  271.         $preValue $this->preGetValue("lastname");
  272.         if ($preValue !== null) {
  273.             return $preValue;
  274.         }
  275.     }
  276.     $data $this->lastname;
  277.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  278.         return $data->getPlain();
  279.     }
  280.     return $data;
  281. }
  282. /**
  283. * Set lastname - Nachname
  284. * @param string|null $lastname
  285. * @return \Pimcore\Model\DataObject\Profile
  286. */
  287. public function setLastname(?string $lastname)
  288. {
  289.     $this->lastname $lastname;
  290.     return $this;
  291. }
  292. /**
  293. * Get languages - Sprachen
  294. * @return string[]|null
  295. */
  296. public function getLanguages(): ?array
  297. {
  298.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  299.         $preValue $this->preGetValue("languages");
  300.         if ($preValue !== null) {
  301.             return $preValue;
  302.         }
  303.     }
  304.     $data $this->languages;
  305.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  306.         return $data->getPlain();
  307.     }
  308.     return $data;
  309. }
  310. /**
  311. * Set languages - Sprachen
  312. * @param string[]|null $languages
  313. * @return \Pimcore\Model\DataObject\Profile
  314. */
  315. public function setLanguages(?array $languages)
  316. {
  317.     $this->languages $languages;
  318.     return $this;
  319. }
  320. /**
  321. * Get slug - Slug
  322. * @return string|null
  323. */
  324. public function getSlug(): ?string
  325. {
  326.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  327.         $preValue $this->preGetValue("slug");
  328.         if ($preValue !== null) {
  329.             return $preValue;
  330.         }
  331.     }
  332.     $data $this->slug;
  333.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  334.         return $data->getPlain();
  335.     }
  336.     return $data;
  337. }
  338. /**
  339. * Set slug - Slug
  340. * @param string|null $slug
  341. * @return \Pimcore\Model\DataObject\Profile
  342. */
  343. public function setSlug(?string $slug)
  344. {
  345.     $this->slug $slug;
  346.     return $this;
  347. }
  348. /**
  349. * Get title - Titel
  350. * @return string|null
  351. */
  352. public function getTitle(): ?string
  353. {
  354.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  355.         $preValue $this->preGetValue("title");
  356.         if ($preValue !== null) {
  357.             return $preValue;
  358.         }
  359.     }
  360.     $data $this->title;
  361.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  362.         return $data->getPlain();
  363.     }
  364.     return $data;
  365. }
  366. /**
  367. * Set title - Titel
  368. * @param string|null $title
  369. * @return \Pimcore\Model\DataObject\Profile
  370. */
  371. public function setTitle(?string $title)
  372. {
  373.     $this->title $title;
  374.     return $this;
  375. }
  376. /**
  377. * Get VAT - vat
  378. * @return string|null
  379. */
  380. public function getVAT(): ?string
  381. {
  382.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  383.         $preValue $this->preGetValue("VAT");
  384.         if ($preValue !== null) {
  385.             return $preValue;
  386.         }
  387.     }
  388.     $data $this->VAT;
  389.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  390.         return $data->getPlain();
  391.     }
  392.     return $data;
  393. }
  394. /**
  395. * Set VAT - vat
  396. * @param string|null $VAT
  397. * @return \Pimcore\Model\DataObject\Profile
  398. */
  399. public function setVAT(?string $VAT)
  400. {
  401.     $this->VAT $VAT;
  402.     return $this;
  403. }
  404. /**
  405. * Get phone - Telefonnummer
  406. * @return string|null
  407. */
  408. public function getPhone(): ?string
  409. {
  410.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  411.         $preValue $this->preGetValue("phone");
  412.         if ($preValue !== null) {
  413.             return $preValue;
  414.         }
  415.     }
  416.     $data $this->phone;
  417.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  418.         return $data->getPlain();
  419.     }
  420.     return $data;
  421. }
  422. /**
  423. * Set phone - Telefonnummer
  424. * @param string|null $phone
  425. * @return \Pimcore\Model\DataObject\Profile
  426. */
  427. public function setPhone(?string $phone)
  428. {
  429.     $this->phone $phone;
  430.     return $this;
  431. }
  432. /**
  433. * Get fax - Faxnummer
  434. * @return string|null
  435. */
  436. public function getFax(): ?string
  437. {
  438.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  439.         $preValue $this->preGetValue("fax");
  440.         if ($preValue !== null) {
  441.             return $preValue;
  442.         }
  443.     }
  444.     $data $this->fax;
  445.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  446.         return $data->getPlain();
  447.     }
  448.     return $data;
  449. }
  450. /**
  451. * Set fax - Faxnummer
  452. * @param string|null $fax
  453. * @return \Pimcore\Model\DataObject\Profile
  454. */
  455. public function setFax(?string $fax)
  456. {
  457.     $this->fax $fax;
  458.     return $this;
  459. }
  460. /**
  461. * Get email - E-Mail
  462. * @return string|null
  463. */
  464. public function getEmail(): ?string
  465. {
  466.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  467.         $preValue $this->preGetValue("email");
  468.         if ($preValue !== null) {
  469.             return $preValue;
  470.         }
  471.     }
  472.     $data $this->email;
  473.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  474.         return $data->getPlain();
  475.     }
  476.     return $data;
  477. }
  478. /**
  479. * Set email - E-Mail
  480. * @param string|null $email
  481. * @return \Pimcore\Model\DataObject\Profile
  482. */
  483. public function setEmail(?string $email)
  484. {
  485.     $this->email $email;
  486.     return $this;
  487. }
  488. /**
  489. * Get website - Webseite
  490. * @return string|null
  491. */
  492. public function getWebsite(): ?string
  493. {
  494.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  495.         $preValue $this->preGetValue("website");
  496.         if ($preValue !== null) {
  497.             return $preValue;
  498.         }
  499.     }
  500.     $data $this->website;
  501.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  502.         return $data->getPlain();
  503.     }
  504.     return $data;
  505. }
  506. /**
  507. * Set website - Webseite
  508. * @param string|null $website
  509. * @return \Pimcore\Model\DataObject\Profile
  510. */
  511. public function setWebsite(?string $website)
  512. {
  513.     $this->website $website;
  514.     return $this;
  515. }
  516. /**
  517. * Get mobile - Mobil
  518. * @return string|null
  519. */
  520. public function getMobile(): ?string
  521. {
  522.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  523.         $preValue $this->preGetValue("mobile");
  524.         if ($preValue !== null) {
  525.             return $preValue;
  526.         }
  527.     }
  528.     $data $this->mobile;
  529.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  530.         return $data->getPlain();
  531.     }
  532.     return $data;
  533. }
  534. /**
  535. * Set mobile - Mobil
  536. * @param string|null $mobile
  537. * @return \Pimcore\Model\DataObject\Profile
  538. */
  539. public function setMobile(?string $mobile)
  540. {
  541.     $this->mobile $mobile;
  542.     return $this;
  543. }
  544. /**
  545. * Get street - Straße
  546. * @return string|null
  547. */
  548. public function getStreet(): ?string
  549. {
  550.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  551.         $preValue $this->preGetValue("street");
  552.         if ($preValue !== null) {
  553.             return $preValue;
  554.         }
  555.     }
  556.     $data $this->street;
  557.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  558.         return $data->getPlain();
  559.     }
  560.     return $data;
  561. }
  562. /**
  563. * Set street - Straße
  564. * @param string|null $street
  565. * @return \Pimcore\Model\DataObject\Profile
  566. */
  567. public function setStreet(?string $street)
  568. {
  569.     $this->street $street;
  570.     return $this;
  571. }
  572. /**
  573. * Get housenumber - Hausnummer
  574. * @return string|null
  575. */
  576. public function getHousenumber(): ?string
  577. {
  578.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  579.         $preValue $this->preGetValue("housenumber");
  580.         if ($preValue !== null) {
  581.             return $preValue;
  582.         }
  583.     }
  584.     $data $this->housenumber;
  585.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  586.         return $data->getPlain();
  587.     }
  588.     return $data;
  589. }
  590. /**
  591. * Set housenumber - Hausnummer
  592. * @param string|null $housenumber
  593. * @return \Pimcore\Model\DataObject\Profile
  594. */
  595. public function setHousenumber(?string $housenumber)
  596. {
  597.     $this->housenumber $housenumber;
  598.     return $this;
  599. }
  600. /**
  601. * Get city - Stadt
  602. * @return string|null
  603. */
  604. public function getCity(): ?string
  605. {
  606.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  607.         $preValue $this->preGetValue("city");
  608.         if ($preValue !== null) {
  609.             return $preValue;
  610.         }
  611.     }
  612.     $data $this->city;
  613.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  614.         return $data->getPlain();
  615.     }
  616.     return $data;
  617. }
  618. /**
  619. * Set city - Stadt
  620. * @param string|null $city
  621. * @return \Pimcore\Model\DataObject\Profile
  622. */
  623. public function setCity(?string $city)
  624. {
  625.     $this->city $city;
  626.     return $this;
  627. }
  628. /**
  629. * Get postalCode - Postleitzahl
  630. * @return string|null
  631. */
  632. public function getPostalCode(): ?string
  633. {
  634.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  635.         $preValue $this->preGetValue("postalCode");
  636.         if ($preValue !== null) {
  637.             return $preValue;
  638.         }
  639.     }
  640.     $data $this->postalCode;
  641.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  642.         return $data->getPlain();
  643.     }
  644.     return $data;
  645. }
  646. /**
  647. * Set postalCode - Postleitzahl
  648. * @param string|null $postalCode
  649. * @return \Pimcore\Model\DataObject\Profile
  650. */
  651. public function setPostalCode(?string $postalCode)
  652. {
  653.     $this->postalCode $postalCode;
  654.     return $this;
  655. }
  656. /**
  657. * Get country - Land
  658. * @return string|null
  659. */
  660. public function getCountry(): ?string
  661. {
  662.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  663.         $preValue $this->preGetValue("country");
  664.         if ($preValue !== null) {
  665.             return $preValue;
  666.         }
  667.     }
  668.     $data $this->country;
  669.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  670.         return $data->getPlain();
  671.     }
  672.     return $data;
  673. }
  674. /**
  675. * Set country - Land
  676. * @param string|null $country
  677. * @return \Pimcore\Model\DataObject\Profile
  678. */
  679. public function setCountry(?string $country)
  680. {
  681.     $this->country $country;
  682.     return $this;
  683. }
  684. /**
  685. * Get geolocation - Geolocation
  686. * @return \Pimcore\Model\DataObject\Data\GeoCoordinates|null
  687. */
  688. public function getGeolocation(): ?\Pimcore\Model\DataObject\Data\GeoCoordinates
  689. {
  690.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  691.         $preValue $this->preGetValue("geolocation");
  692.         if ($preValue !== null) {
  693.             return $preValue;
  694.         }
  695.     }
  696.     $data $this->geolocation;
  697.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  698.         return $data->getPlain();
  699.     }
  700.     return $data;
  701. }
  702. /**
  703. * Set geolocation - Geolocation
  704. * @param \Pimcore\Model\DataObject\Data\GeoCoordinates|null $geolocation
  705. * @return \Pimcore\Model\DataObject\Profile
  706. */
  707. public function setGeolocation(?\Pimcore\Model\DataObject\Data\GeoCoordinates $geolocation)
  708. {
  709.     $this->geolocation $geolocation;
  710.     return $this;
  711. }
  712. /**
  713. * Get geolocationApprox - geolocationApprox
  714. * @return \Pimcore\Model\DataObject\Data\GeoCoordinates|null
  715. */
  716. public function getGeolocationApprox(): ?\Pimcore\Model\DataObject\Data\GeoCoordinates
  717. {
  718.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  719.         $preValue $this->preGetValue("geolocationApprox");
  720.         if ($preValue !== null) {
  721.             return $preValue;
  722.         }
  723.     }
  724.     $data $this->geolocationApprox;
  725.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  726.         return $data->getPlain();
  727.     }
  728.     return $data;
  729. }
  730. /**
  731. * Set geolocationApprox - geolocationApprox
  732. * @param \Pimcore\Model\DataObject\Data\GeoCoordinates|null $geolocationApprox
  733. * @return \Pimcore\Model\DataObject\Profile
  734. */
  735. public function setGeolocationApprox(?\Pimcore\Model\DataObject\Data\GeoCoordinates $geolocationApprox)
  736. {
  737.     $this->geolocationApprox $geolocationApprox;
  738.     return $this;
  739. }
  740. /**
  741. * Get partner - Partner
  742. * @return \Pimcore\Model\DataObject\Data\ElementMetadata[]
  743. */
  744. public function getPartner(): array
  745. {
  746.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  747.         $preValue $this->preGetValue("partner");
  748.         if ($preValue !== null) {
  749.             return $preValue;
  750.         }
  751.     }
  752.     $data $this->getClass()->getFieldDefinition("partner")->preGetData($this);
  753.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  754.         return $data->getPlain();
  755.     }
  756.     return $data;
  757. }
  758. /**
  759. * Set partner - Partner
  760. * @param \Pimcore\Model\DataObject\Data\ElementMetadata[] $partner
  761. * @return \Pimcore\Model\DataObject\Profile
  762. */
  763. public function setPartner(?array $partner)
  764. {
  765.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyRelation $fd */
  766.     $fd $this->getClass()->getFieldDefinition("partner");
  767.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  768.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  769.     $currentData $this->getPartner();
  770.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  771.     $isEqual $fd->isEqual($currentData$partner);
  772.     if (!$isEqual) {
  773.         $this->markFieldDirty("partner"true);
  774.     }
  775.     $this->partner $fd->preSetData($this$partner);
  776.     return $this;
  777. }
  778. /**
  779. * Get team - Team
  780. * @return \Pimcore\Model\DataObject\TeamMember[]
  781. */
  782. public function getTeam(): array
  783. {
  784.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  785.         $preValue $this->preGetValue("team");
  786.         if ($preValue !== null) {
  787.             return $preValue;
  788.         }
  789.     }
  790.     $data $this->getClass()->getFieldDefinition("team")->preGetData($this);
  791.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  792.         return $data->getPlain();
  793.     }
  794.     return $data;
  795. }
  796. /**
  797. * Set team - Team
  798. * @param \Pimcore\Model\DataObject\TeamMember[] $team
  799. * @return \Pimcore\Model\DataObject\Profile
  800. */
  801. public function setTeam(?array $team)
  802. {
  803.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  804.     $fd $this->getClass()->getFieldDefinition("team");
  805.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  806.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  807.     $currentData $this->getTeam();
  808.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  809.     $isEqual $fd->isEqual($currentData$team);
  810.     if (!$isEqual) {
  811.         $this->markFieldDirty("team"true);
  812.     }
  813.     $this->team $fd->preSetData($this$team);
  814.     return $this;
  815. }
  816. /**
  817. * Get description - description
  818. * @return string|null
  819. */
  820. public function getDescription(): ?string
  821. {
  822.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  823.         $preValue $this->preGetValue("description");
  824.         if ($preValue !== null) {
  825.             return $preValue;
  826.         }
  827.     }
  828.     $data $this->description;
  829.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  830.         return $data->getPlain();
  831.     }
  832.     return $data;
  833. }
  834. /**
  835. * Set description - description
  836. * @param string|null $description
  837. * @return \Pimcore\Model\DataObject\Profile
  838. */
  839. public function setDescription(?string $description)
  840. {
  841.     $this->description $description;
  842.     return $this;
  843. }
  844. /**
  845. * @return \Pimcore\Model\DataObject\Profile\Profiles
  846. */
  847. public function getProfiles(): ?\Pimcore\Model\DataObject\Objectbrick
  848. {
  849.     $data $this->profiles;
  850.     if (!$data) {
  851.         if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Profile\\Profiles")) {
  852.             $data = new \Pimcore\Model\DataObject\Profile\Profiles($this"profiles");
  853.             $this->profiles $data;
  854.         } else {
  855.             return null;
  856.         }
  857.     }
  858.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  859.         $preValue $this->preGetValue("profiles");
  860.         if ($preValue !== null) {
  861.             return $preValue;
  862.         }
  863.     }
  864.     return $data;
  865. }
  866. /**
  867. * Set profiles - Subprofile
  868. * @param \Pimcore\Model\DataObject\Objectbrick|null $profiles
  869. * @return \Pimcore\Model\DataObject\Profile
  870. */
  871. public function setProfiles(?\Pimcore\Model\DataObject\Objectbrick $profiles)
  872. {
  873.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
  874.     $fd $this->getClass()->getFieldDefinition("profiles");
  875.     $this->profiles $fd->preSetData($this$profiles);
  876.     return $this;
  877. }
  878. /**
  879. * Get primaryProfile - Primärprofil
  880. * @return string|null
  881. */
  882. public function getPrimaryProfile(): ?string
  883. {
  884.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  885.         $preValue $this->preGetValue("primaryProfile");
  886.         if ($preValue !== null) {
  887.             return $preValue;
  888.         }
  889.     }
  890.     $data $this->primaryProfile;
  891.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  892.         return $data->getPlain();
  893.     }
  894.     return $data;
  895. }
  896. /**
  897. * Set primaryProfile - Primärprofil
  898. * @param string|null $primaryProfile
  899. * @return \Pimcore\Model\DataObject\Profile
  900. */
  901. public function setPrimaryProfile(?string $primaryProfile)
  902. {
  903.     $this->primaryProfile $primaryProfile;
  904.     return $this;
  905. }
  906. /**
  907. * Get network - Netzwerk
  908. * @return \Pimcore\Model\DataObject\Profile[]
  909. */
  910. public function getNetwork(): array
  911. {
  912.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  913.         $preValue $this->preGetValue("network");
  914.         if ($preValue !== null) {
  915.             return $preValue;
  916.         }
  917.     }
  918.     $data $this->getClass()->getFieldDefinition("network")->preGetData($this);
  919.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  920.         return $data->getPlain();
  921.     }
  922.     return $data;
  923. }
  924. /**
  925. * Set network - Netzwerk
  926. * @param \Pimcore\Model\DataObject\Profile[] $network
  927. * @return \Pimcore\Model\DataObject\Profile
  928. */
  929. public function setNetwork(?array $network)
  930. {
  931.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  932.     $fd $this->getClass()->getFieldDefinition("network");
  933.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  934.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  935.     $currentData $this->getNetwork();
  936.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  937.     $isEqual $fd->isEqual($currentData$network);
  938.     if (!$isEqual) {
  939.         $this->markFieldDirty("network"true);
  940.     }
  941.     $this->network $fd->preSetData($this$network);
  942.     return $this;
  943. }
  944. /**
  945. * Get reversedNetwork - Netzwerk Verknüpfungen
  946. * @return \Pimcore\Model\DataObject\AbstractObject[]
  947. */
  948. public function getReversedNetwork(): array
  949. {
  950.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  951.         $preValue $this->preGetValue("reversedNetwork");
  952.         if ($preValue !== null) {
  953.             return $preValue;
  954.         }
  955.     }
  956.     $data $this->getClass()->getFieldDefinition("reversedNetwork")->preGetData($this);
  957.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  958.         return $data->getPlain();
  959.     }
  960.     return $data;
  961. }
  962. /**
  963. * Get reversedNews - News
  964. * @return \Pimcore\Model\DataObject\AbstractObject[]
  965. */
  966. public function getReversedNews(): array
  967. {
  968.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  969.         $preValue $this->preGetValue("reversedNews");
  970.         if ($preValue !== null) {
  971.             return $preValue;
  972.         }
  973.     }
  974.     $data $this->getClass()->getFieldDefinition("reversedNews")->preGetData($this);
  975.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  976.         return $data->getPlain();
  977.     }
  978.     return $data;
  979. }
  980. /**
  981. * Get organisations - Organisationen
  982. * @return \Pimcore\Model\DataObject\Profile[] | \Pimcore\Model\DataObject\Club[] | \Pimcore\Model\DataObject\Association[]
  983. */
  984. public function getOrganisations(): array
  985. {
  986.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  987.         $preValue $this->preGetValue("organisations");
  988.         if ($preValue !== null) {
  989.             return $preValue;
  990.         }
  991.     }
  992.     $data $this->getClass()->getFieldDefinition("organisations")->preGetData($this);
  993.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  994.         return $data->getPlain();
  995.     }
  996.     return $data;
  997. }
  998. /**
  999. * Set organisations - Organisationen
  1000. * @param \Pimcore\Model\DataObject\Profile[] | \Pimcore\Model\DataObject\Club[] | \Pimcore\Model\DataObject\Association[] $organisations
  1001. * @return \Pimcore\Model\DataObject\Profile
  1002. */
  1003. public function setOrganisations(?array $organisations)
  1004. {
  1005.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1006.     $fd $this->getClass()->getFieldDefinition("organisations");
  1007.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1008.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1009.     $currentData $this->getOrganisations();
  1010.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1011.     $isEqual $fd->isEqual($currentData$organisations);
  1012.     if (!$isEqual) {
  1013.         $this->markFieldDirty("organisations"true);
  1014.     }
  1015.     $this->organisations $fd->preSetData($this$organisations);
  1016.     return $this;
  1017. }
  1018. /**
  1019. * Get socialMedia - Social Media
  1020. * @return \Pimcore\Model\DataObject\Data\StructuredTable|null
  1021. */
  1022. public function getSocialMedia(): ?\Pimcore\Model\DataObject\Data\StructuredTable
  1023. {
  1024.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1025.         $preValue $this->preGetValue("socialMedia");
  1026.         if ($preValue !== null) {
  1027.             return $preValue;
  1028.         }
  1029.     }
  1030.     $data $this->socialMedia;
  1031.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1032.         return $data->getPlain();
  1033.     }
  1034.     return $data;
  1035. }
  1036. /**
  1037. * Set socialMedia - Social Media
  1038. * @param \Pimcore\Model\DataObject\Data\StructuredTable|null $socialMedia
  1039. * @return \Pimcore\Model\DataObject\Profile
  1040. */
  1041. public function setSocialMedia(?\Pimcore\Model\DataObject\Data\StructuredTable $socialMedia)
  1042. {
  1043.     $this->socialMedia $socialMedia;
  1044.     return $this;
  1045. }
  1046. /**
  1047. * Get links - Links
  1048. * @return \Pimcore\Model\DataObject\Data\StructuredTable|null
  1049. */
  1050. public function getLinks(): ?\Pimcore\Model\DataObject\Data\StructuredTable
  1051. {
  1052.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1053.         $preValue $this->preGetValue("links");
  1054.         if ($preValue !== null) {
  1055.             return $preValue;
  1056.         }
  1057.     }
  1058.     $data $this->links;
  1059.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1060.         return $data->getPlain();
  1061.     }
  1062.     return $data;
  1063. }
  1064. /**
  1065. * Set links - Links
  1066. * @param \Pimcore\Model\DataObject\Data\StructuredTable|null $links
  1067. * @return \Pimcore\Model\DataObject\Profile
  1068. */
  1069. public function setLinks(?\Pimcore\Model\DataObject\Data\StructuredTable $links)
  1070. {
  1071.     $this->links $links;
  1072.     return $this;
  1073. }
  1074. /**
  1075. * Get downloads - Downloads
  1076. * @return \Pimcore\Model\DataObject\Data\ElementMetadata[]
  1077. */
  1078. public function getDownloads(): array
  1079. {
  1080.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1081.         $preValue $this->preGetValue("downloads");
  1082.         if ($preValue !== null) {
  1083.             return $preValue;
  1084.         }
  1085.     }
  1086.     $data $this->getClass()->getFieldDefinition("downloads")->preGetData($this);
  1087.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1088.         return $data->getPlain();
  1089.     }
  1090.     return $data;
  1091. }
  1092. /**
  1093. * Set downloads - Downloads
  1094. * @param \Pimcore\Model\DataObject\Data\ElementMetadata[] $downloads
  1095. * @return \Pimcore\Model\DataObject\Profile
  1096. */
  1097. public function setDownloads(?array $downloads)
  1098. {
  1099.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyRelation $fd */
  1100.     $fd $this->getClass()->getFieldDefinition("downloads");
  1101.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1102.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1103.     $currentData $this->getDownloads();
  1104.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1105.     $isEqual $fd->isEqual($currentData$downloads);
  1106.     if (!$isEqual) {
  1107.         $this->markFieldDirty("downloads"true);
  1108.     }
  1109.     $this->downloads $fd->preSetData($this$downloads);
  1110.     return $this;
  1111. }
  1112. /**
  1113. * Get username - Username
  1114. * @return string|null
  1115. */
  1116. public function getUsername(): ?string
  1117. {
  1118.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1119.         $preValue $this->preGetValue("username");
  1120.         if ($preValue !== null) {
  1121.             return $preValue;
  1122.         }
  1123.     }
  1124.     $data $this->username;
  1125.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1126.         return $data->getPlain();
  1127.     }
  1128.     return $data;
  1129. }
  1130. /**
  1131. * Set username - Username
  1132. * @param string|null $username
  1133. * @return \Pimcore\Model\DataObject\Profile
  1134. */
  1135. public function setUsername(?string $username)
  1136. {
  1137.     $this->username $username;
  1138.     return $this;
  1139. }
  1140. /**
  1141. * Get password - Passwort
  1142. * @return string|null
  1143. */
  1144. public function getPassword(): ?string
  1145. {
  1146.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1147.         $preValue $this->preGetValue("password");
  1148.         if ($preValue !== null) {
  1149.             return $preValue;
  1150.         }
  1151.     }
  1152.     $data $this->password;
  1153.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1154.         return $data->getPlain();
  1155.     }
  1156.     return $data;
  1157. }
  1158. /**
  1159. * Set password - Passwort
  1160. * @param string|null $password
  1161. * @return \Pimcore\Model\DataObject\Profile
  1162. */
  1163. public function setPassword(?string $password)
  1164. {
  1165.     $this->password $password;
  1166.     return $this;
  1167. }
  1168. /**
  1169. * Get activationToken - Aktivierungs-Key
  1170. * @return string|null
  1171. */
  1172. public function getActivationToken(): ?string
  1173. {
  1174.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1175.         $preValue $this->preGetValue("activationToken");
  1176.         if ($preValue !== null) {
  1177.             return $preValue;
  1178.         }
  1179.     }
  1180.     $data $this->activationToken;
  1181.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1182.         return $data->getPlain();
  1183.     }
  1184.     return $data;
  1185. }
  1186. /**
  1187. * Set activationToken - Aktivierungs-Key
  1188. * @param string|null $activationToken
  1189. * @return \Pimcore\Model\DataObject\Profile
  1190. */
  1191. public function setActivationToken(?string $activationToken)
  1192. {
  1193.     $this->activationToken $activationToken;
  1194.     return $this;
  1195. }
  1196. /**
  1197. * Get resetToken - Wiederherstellungs-Key
  1198. * @return string|null
  1199. */
  1200. public function getResetToken(): ?string
  1201. {
  1202.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1203.         $preValue $this->preGetValue("resetToken");
  1204.         if ($preValue !== null) {
  1205.             return $preValue;
  1206.         }
  1207.     }
  1208.     $data $this->resetToken;
  1209.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1210.         return $data->getPlain();
  1211.     }
  1212.     return $data;
  1213. }
  1214. /**
  1215. * Set resetToken - Wiederherstellungs-Key
  1216. * @param string|null $resetToken
  1217. * @return \Pimcore\Model\DataObject\Profile
  1218. */
  1219. public function setResetToken(?string $resetToken)
  1220. {
  1221.     $this->resetToken $resetToken;
  1222.     return $this;
  1223. }
  1224. /**
  1225. * Get signUpCompletionState - Registrierungsstatus
  1226. * @return string|null
  1227. */
  1228. public function getSignUpCompletionState(): ?string
  1229. {
  1230.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1231.         $preValue $this->preGetValue("signUpCompletionState");
  1232.         if ($preValue !== null) {
  1233.             return $preValue;
  1234.         }
  1235.     }
  1236.     $data $this->signUpCompletionState;
  1237.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1238.         return $data->getPlain();
  1239.     }
  1240.     return $data;
  1241. }
  1242. /**
  1243. * Set signUpCompletionState - Registrierungsstatus
  1244. * @param string|null $signUpCompletionState
  1245. * @return \Pimcore\Model\DataObject\Profile
  1246. */
  1247. public function setSignUpCompletionState(?string $signUpCompletionState)
  1248. {
  1249.     $this->signUpCompletionState $signUpCompletionState;
  1250.     return $this;
  1251. }
  1252. /**
  1253. * Get isStaff - 3forone Teammitglied
  1254. * @return bool|null
  1255. */
  1256. public function getIsStaff(): ?bool
  1257. {
  1258.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1259.         $preValue $this->preGetValue("isStaff");
  1260.         if ($preValue !== null) {
  1261.             return $preValue;
  1262.         }
  1263.     }
  1264.     $data $this->isStaff;
  1265.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1266.         return $data->getPlain();
  1267.     }
  1268.     return $data;
  1269. }
  1270. /**
  1271. * Set isStaff - 3forone Teammitglied
  1272. * @param bool|null $isStaff
  1273. * @return \Pimcore\Model\DataObject\Profile
  1274. */
  1275. public function setIsStaff(?bool $isStaff)
  1276. {
  1277.     $this->isStaff $isStaff;
  1278.     return $this;
  1279. }
  1280. /**
  1281. * Get roles - Rollen
  1282. * @return string[]|null
  1283. */
  1284. public function getRoles(): ?array
  1285. {
  1286.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1287.         $preValue $this->preGetValue("roles");
  1288.         if ($preValue !== null) {
  1289.             return $preValue;
  1290.         }
  1291.     }
  1292.     $data $this->roles;
  1293.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1294.         return $data->getPlain();
  1295.     }
  1296.     return $data;
  1297. }
  1298. /**
  1299. * Set roles - Rollen
  1300. * @param string[]|null $roles
  1301. * @return \Pimcore\Model\DataObject\Profile
  1302. */
  1303. public function setRoles(?array $roles)
  1304. {
  1305.     $this->roles $roles;
  1306.     return $this;
  1307. }
  1308. /**
  1309. * Get abowireUserId - Abowire User Id
  1310. * @return string|null
  1311. */
  1312. public function getAbowireUserId(): ?string
  1313. {
  1314.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1315.         $preValue $this->preGetValue("abowireUserId");
  1316.         if ($preValue !== null) {
  1317.             return $preValue;
  1318.         }
  1319.     }
  1320.     $data $this->abowireUserId;
  1321.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1322.         return $data->getPlain();
  1323.     }
  1324.     return $data;
  1325. }
  1326. /**
  1327. * Set abowireUserId - Abowire User Id
  1328. * @param string|null $abowireUserId
  1329. * @return \Pimcore\Model\DataObject\Profile
  1330. */
  1331. public function setAbowireUserId(?string $abowireUserId)
  1332. {
  1333.     $this->abowireUserId $abowireUserId;
  1334.     return $this;
  1335. }
  1336. /**
  1337. * Get preferredLanguage - Bevorzugte Sprache
  1338. * @return string|null
  1339. */
  1340. public function getPreferredLanguage(): ?string
  1341. {
  1342.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1343.         $preValue $this->preGetValue("preferredLanguage");
  1344.         if ($preValue !== null) {
  1345.             return $preValue;
  1346.         }
  1347.     }
  1348.     $data $this->preferredLanguage;
  1349.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1350.         return $data->getPlain();
  1351.     }
  1352.     return $data;
  1353. }
  1354. /**
  1355. * Set preferredLanguage - Bevorzugte Sprache
  1356. * @param string|null $preferredLanguage
  1357. * @return \Pimcore\Model\DataObject\Profile
  1358. */
  1359. public function setPreferredLanguage(?string $preferredLanguage)
  1360. {
  1361.     $this->preferredLanguage $preferredLanguage;
  1362.     return $this;
  1363. }
  1364. /**
  1365. * Get color - 
  1366. * @return \Pimcore\Model\DataObject\Data\RgbaColor|null
  1367. */
  1368. public function getColor(): ?\Pimcore\Model\DataObject\Data\RgbaColor
  1369. {
  1370.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1371.         $preValue $this->preGetValue("color");
  1372.         if ($preValue !== null) {
  1373.             return $preValue;
  1374.         }
  1375.     }
  1376.     $data $this->color;
  1377.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1378.         return $data->getPlain();
  1379.     }
  1380.     return $data;
  1381. }
  1382. /**
  1383. * Set color - 
  1384. * @param \Pimcore\Model\DataObject\Data\RgbaColor|null $color
  1385. * @return \Pimcore\Model\DataObject\Profile
  1386. */
  1387. public function setColor(?\Pimcore\Model\DataObject\Data\RgbaColor $color)
  1388. {
  1389.     $this->color $color;
  1390.     return $this;
  1391. }
  1392. /**
  1393. * Get avatar - Avatar
  1394. * @return \Pimcore\Model\Asset\Image|null
  1395. */
  1396. public function getAvatar(): ?\Pimcore\Model\Asset\Image
  1397. {
  1398.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1399.         $preValue $this->preGetValue("avatar");
  1400.         if ($preValue !== null) {
  1401.             return $preValue;
  1402.         }
  1403.     }
  1404.     $data $this->avatar;
  1405.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1406.         return $data->getPlain();
  1407.     }
  1408.     return $data;
  1409. }
  1410. /**
  1411. * Set avatar - Avatar
  1412. * @param \Pimcore\Model\Asset\Image|null $avatar
  1413. * @return \Pimcore\Model\DataObject\Profile
  1414. */
  1415. public function setAvatar(?\Pimcore\Model\Asset\Image $avatar)
  1416. {
  1417.     $this->avatar $avatar;
  1418.     return $this;
  1419. }
  1420. /**
  1421. * Get banner - Banner
  1422. * @return \Pimcore\Model\Asset\Image|null
  1423. */
  1424. public function getBanner(): ?\Pimcore\Model\Asset\Image
  1425. {
  1426.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1427.         $preValue $this->preGetValue("banner");
  1428.         if ($preValue !== null) {
  1429.             return $preValue;
  1430.         }
  1431.     }
  1432.     $data $this->banner;
  1433.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1434.         return $data->getPlain();
  1435.     }
  1436.     return $data;
  1437. }
  1438. /**
  1439. * Set banner - Banner
  1440. * @param \Pimcore\Model\Asset\Image|null $banner
  1441. * @return \Pimcore\Model\DataObject\Profile
  1442. */
  1443. public function setBanner(?\Pimcore\Model\Asset\Image $banner)
  1444. {
  1445.     $this->banner $banner;
  1446.     return $this;
  1447. }
  1448. }