<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - profileType [select]
* - company [input]
* - gender [gender]
* - firstname [firstname]
* - lastname [lastname]
* - languages [languagemultiselect]
* - slug [input]
* - title [select]
* - VAT [input]
* - phone [input]
* - fax [input]
* - email [email]
* - website [input]
* - mobile [input]
* - street [input]
* - housenumber [input]
* - city [input]
* - postalCode [input]
* - country [country]
* - geolocation [geopoint]
* - geolocationApprox [geopoint]
* - partner [advancedManyToManyRelation]
* - team [manyToManyObjectRelation]
* - description [textarea]
* - profiles [objectbricks]
* - primaryProfile [select]
* - network [manyToManyObjectRelation]
* - reversedNetwork [reverseObjectRelation]
* - reversedNews [reverseObjectRelation]
* - organisations [manyToManyObjectRelation]
* - socialMedia [structuredTable]
* - links [structuredTable]
* - downloads [advancedManyToManyRelation]
* - username [input]
* - password [password]
* - activationToken [input]
* - resetToken [input]
* - signUpCompletionState [select]
* - isStaff [booleanSelect]
* - roles [multiselect]
* - abowireUserId [input]
* - preferredLanguage [language]
* - color [rgbaColor]
* - avatar [image]
* - banner [image]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Profile\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByProfileType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByCompany($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByGender($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByFirstname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByLastname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByLanguages($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getBySlug($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByVAT($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPhone($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByFax($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByWebsite($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByMobile($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByStreet($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByHousenumber($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByCity($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPostalCode($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPartner($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByTeam($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPrimaryProfile($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByNetwork($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByReversedNetwork($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByReversedNews($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByOrganisations($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByDownloads($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByUsername($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByActivationToken($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByResetToken($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getBySignUpCompletionState($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByRoles($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByAbowireUserId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByPreferredLanguage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByAvatar($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Profile\Listing|\Pimcore\Model\DataObject\Profile|null getByBanner($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Profile extends Concrete
{
protected $o_classId = "profile";
protected $o_className = "Profile";
protected $profileType;
protected $company;
protected $gender;
protected $firstname;
protected $lastname;
protected $languages;
protected $slug;
protected $title;
protected $VAT;
protected $phone;
protected $fax;
protected $email;
protected $website;
protected $mobile;
protected $street;
protected $housenumber;
protected $city;
protected $postalCode;
protected $country;
protected $geolocation;
protected $geolocationApprox;
protected $partner;
protected $team;
protected $description;
protected $profiles;
protected $primaryProfile;
protected $network;
protected $organisations;
protected $socialMedia;
protected $links;
protected $downloads;
protected $username;
protected $password;
protected $activationToken;
protected $resetToken;
protected $signUpCompletionState;
protected $isStaff;
protected $roles;
protected $abowireUserId;
protected $preferredLanguage;
protected $color;
protected $avatar;
protected $banner;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Profile
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get profileType - Profilart
* @return string|null
*/
public function getProfileType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("profileType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->profileType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set profileType - Profilart
* @param string|null $profileType
* @return \Pimcore\Model\DataObject\Profile
*/
public function setProfileType(?string $profileType)
{
$this->profileType = $profileType;
return $this;
}
/**
* Get company - Firma
* @return string|null
*/
public function getCompany(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("company");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->company;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set company - Firma
* @param string|null $company
* @return \Pimcore\Model\DataObject\Profile
*/
public function setCompany(?string $company)
{
$this->company = $company;
return $this;
}
/**
* Get gender - Geschlecht
* @return string|null
*/
public function getGender(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gender");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gender;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gender - Geschlecht
* @param string|null $gender
* @return \Pimcore\Model\DataObject\Profile
*/
public function setGender(?string $gender)
{
$this->gender = $gender;
return $this;
}
/**
* Get firstname - Vorname
* @return string|null
*/
public function getFirstname(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("firstname");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->firstname;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set firstname - Vorname
* @param string|null $firstname
* @return \Pimcore\Model\DataObject\Profile
*/
public function setFirstname(?string $firstname)
{
$this->firstname = $firstname;
return $this;
}
/**
* Get lastname - Nachname
* @return string|null
*/
public function getLastname(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastname");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastname;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastname - Nachname
* @param string|null $lastname
* @return \Pimcore\Model\DataObject\Profile
*/
public function setLastname(?string $lastname)
{
$this->lastname = $lastname;
return $this;
}
/**
* Get languages - Sprachen
* @return string[]|null
*/
public function getLanguages(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("languages");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->languages;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set languages - Sprachen
* @param string[]|null $languages
* @return \Pimcore\Model\DataObject\Profile
*/
public function setLanguages(?array $languages)
{
$this->languages = $languages;
return $this;
}
/**
* Get slug - Slug
* @return string|null
*/
public function getSlug(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("slug");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->slug;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set slug - Slug
* @param string|null $slug
* @return \Pimcore\Model\DataObject\Profile
*/
public function setSlug(?string $slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get title - Titel
* @return string|null
*/
public function getTitle(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("title");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->title;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set title - Titel
* @param string|null $title
* @return \Pimcore\Model\DataObject\Profile
*/
public function setTitle(?string $title)
{
$this->title = $title;
return $this;
}
/**
* Get VAT - vat
* @return string|null
*/
public function getVAT(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("VAT");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->VAT;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set VAT - vat
* @param string|null $VAT
* @return \Pimcore\Model\DataObject\Profile
*/
public function setVAT(?string $VAT)
{
$this->VAT = $VAT;
return $this;
}
/**
* Get phone - Telefonnummer
* @return string|null
*/
public function getPhone(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("phone");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->phone;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set phone - Telefonnummer
* @param string|null $phone
* @return \Pimcore\Model\DataObject\Profile
*/
public function setPhone(?string $phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get fax - Faxnummer
* @return string|null
*/
public function getFax(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("fax");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->fax;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set fax - Faxnummer
* @param string|null $fax
* @return \Pimcore\Model\DataObject\Profile
*/
public function setFax(?string $fax)
{
$this->fax = $fax;
return $this;
}
/**
* Get email - E-Mail
* @return string|null
*/
public function getEmail(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("email");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->email;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set email - E-Mail
* @param string|null $email
* @return \Pimcore\Model\DataObject\Profile
*/
public function setEmail(?string $email)
{
$this->email = $email;
return $this;
}
/**
* Get website - Webseite
* @return string|null
*/
public function getWebsite(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("website");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->website;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set website - Webseite
* @param string|null $website
* @return \Pimcore\Model\DataObject\Profile
*/
public function setWebsite(?string $website)
{
$this->website = $website;
return $this;
}
/**
* Get mobile - Mobil
* @return string|null
*/
public function getMobile(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("mobile");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->mobile;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set mobile - Mobil
* @param string|null $mobile
* @return \Pimcore\Model\DataObject\Profile
*/
public function setMobile(?string $mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Get street - Straße
* @return string|null
*/
public function getStreet(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("street");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->street;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set street - Straße
* @param string|null $street
* @return \Pimcore\Model\DataObject\Profile
*/
public function setStreet(?string $street)
{
$this->street = $street;
return $this;
}
/**
* Get housenumber - Hausnummer
* @return string|null
*/
public function getHousenumber(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("housenumber");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->housenumber;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set housenumber - Hausnummer
* @param string|null $housenumber
* @return \Pimcore\Model\DataObject\Profile
*/
public function setHousenumber(?string $housenumber)
{
$this->housenumber = $housenumber;
return $this;
}
/**
* Get city - Stadt
* @return string|null
*/
public function getCity(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("city");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->city;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set city - Stadt
* @param string|null $city
* @return \Pimcore\Model\DataObject\Profile
*/
public function setCity(?string $city)
{
$this->city = $city;
return $this;
}
/**
* Get postalCode - Postleitzahl
* @return string|null
*/
public function getPostalCode(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("postalCode");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->postalCode;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set postalCode - Postleitzahl
* @param string|null $postalCode
* @return \Pimcore\Model\DataObject\Profile
*/
public function setPostalCode(?string $postalCode)
{
$this->postalCode = $postalCode;
return $this;
}
/**
* Get country - Land
* @return string|null
*/
public function getCountry(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("country");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->country;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set country - Land
* @param string|null $country
* @return \Pimcore\Model\DataObject\Profile
*/
public function setCountry(?string $country)
{
$this->country = $country;
return $this;
}
/**
* Get geolocation - Geolocation
* @return \Pimcore\Model\DataObject\Data\GeoCoordinates|null
*/
public function getGeolocation(): ?\Pimcore\Model\DataObject\Data\GeoCoordinates
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("geolocation");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->geolocation;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set geolocation - Geolocation
* @param \Pimcore\Model\DataObject\Data\GeoCoordinates|null $geolocation
* @return \Pimcore\Model\DataObject\Profile
*/
public function setGeolocation(?\Pimcore\Model\DataObject\Data\GeoCoordinates $geolocation)
{
$this->geolocation = $geolocation;
return $this;
}
/**
* Get geolocationApprox - geolocationApprox
* @return \Pimcore\Model\DataObject\Data\GeoCoordinates|null
*/
public function getGeolocationApprox(): ?\Pimcore\Model\DataObject\Data\GeoCoordinates
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("geolocationApprox");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->geolocationApprox;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set geolocationApprox - geolocationApprox
* @param \Pimcore\Model\DataObject\Data\GeoCoordinates|null $geolocationApprox
* @return \Pimcore\Model\DataObject\Profile
*/
public function setGeolocationApprox(?\Pimcore\Model\DataObject\Data\GeoCoordinates $geolocationApprox)
{
$this->geolocationApprox = $geolocationApprox;
return $this;
}
/**
* Get partner - Partner
* @return \Pimcore\Model\DataObject\Data\ElementMetadata[]
*/
public function getPartner(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("partner");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("partner")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set partner - Partner
* @param \Pimcore\Model\DataObject\Data\ElementMetadata[] $partner
* @return \Pimcore\Model\DataObject\Profile
*/
public function setPartner(?array $partner)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("partner");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPartner();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $partner);
if (!$isEqual) {
$this->markFieldDirty("partner", true);
}
$this->partner = $fd->preSetData($this, $partner);
return $this;
}
/**
* Get team - Team
* @return \Pimcore\Model\DataObject\TeamMember[]
*/
public function getTeam(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("team");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("team")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set team - Team
* @param \Pimcore\Model\DataObject\TeamMember[] $team
* @return \Pimcore\Model\DataObject\Profile
*/
public function setTeam(?array $team)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("team");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getTeam();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $team);
if (!$isEqual) {
$this->markFieldDirty("team", true);
}
$this->team = $fd->preSetData($this, $team);
return $this;
}
/**
* Get description - description
* @return string|null
*/
public function getDescription(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("description");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->description;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set description - description
* @param string|null $description
* @return \Pimcore\Model\DataObject\Profile
*/
public function setDescription(?string $description)
{
$this->description = $description;
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Profile\Profiles
*/
public function getProfiles(): ?\Pimcore\Model\DataObject\Objectbrick
{
$data = $this->profiles;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Profile\\Profiles")) {
$data = new \Pimcore\Model\DataObject\Profile\Profiles($this, "profiles");
$this->profiles = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("profiles");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set profiles - Subprofile
* @param \Pimcore\Model\DataObject\Objectbrick|null $profiles
* @return \Pimcore\Model\DataObject\Profile
*/
public function setProfiles(?\Pimcore\Model\DataObject\Objectbrick $profiles)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("profiles");
$this->profiles = $fd->preSetData($this, $profiles);
return $this;
}
/**
* Get primaryProfile - Primärprofil
* @return string|null
*/
public function getPrimaryProfile(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("primaryProfile");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->primaryProfile;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set primaryProfile - Primärprofil
* @param string|null $primaryProfile
* @return \Pimcore\Model\DataObject\Profile
*/
public function setPrimaryProfile(?string $primaryProfile)
{
$this->primaryProfile = $primaryProfile;
return $this;
}
/**
* Get network - Netzwerk
* @return \Pimcore\Model\DataObject\Profile[]
*/
public function getNetwork(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("network");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("network")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set network - Netzwerk
* @param \Pimcore\Model\DataObject\Profile[] $network
* @return \Pimcore\Model\DataObject\Profile
*/
public function setNetwork(?array $network)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("network");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getNetwork();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $network);
if (!$isEqual) {
$this->markFieldDirty("network", true);
}
$this->network = $fd->preSetData($this, $network);
return $this;
}
/**
* Get reversedNetwork - Netzwerk Verknüpfungen
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getReversedNetwork(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("reversedNetwork");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("reversedNetwork")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get reversedNews - News
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getReversedNews(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("reversedNews");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("reversedNews")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get organisations - Organisationen
* @return \Pimcore\Model\DataObject\Profile[] | \Pimcore\Model\DataObject\Club[] | \Pimcore\Model\DataObject\Association[]
*/
public function getOrganisations(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("organisations");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("organisations")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set organisations - Organisationen
* @param \Pimcore\Model\DataObject\Profile[] | \Pimcore\Model\DataObject\Club[] | \Pimcore\Model\DataObject\Association[] $organisations
* @return \Pimcore\Model\DataObject\Profile
*/
public function setOrganisations(?array $organisations)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("organisations");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getOrganisations();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $organisations);
if (!$isEqual) {
$this->markFieldDirty("organisations", true);
}
$this->organisations = $fd->preSetData($this, $organisations);
return $this;
}
/**
* Get socialMedia - Social Media
* @return \Pimcore\Model\DataObject\Data\StructuredTable|null
*/
public function getSocialMedia(): ?\Pimcore\Model\DataObject\Data\StructuredTable
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("socialMedia");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->socialMedia;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set socialMedia - Social Media
* @param \Pimcore\Model\DataObject\Data\StructuredTable|null $socialMedia
* @return \Pimcore\Model\DataObject\Profile
*/
public function setSocialMedia(?\Pimcore\Model\DataObject\Data\StructuredTable $socialMedia)
{
$this->socialMedia = $socialMedia;
return $this;
}
/**
* Get links - Links
* @return \Pimcore\Model\DataObject\Data\StructuredTable|null
*/
public function getLinks(): ?\Pimcore\Model\DataObject\Data\StructuredTable
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("links");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->links;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set links - Links
* @param \Pimcore\Model\DataObject\Data\StructuredTable|null $links
* @return \Pimcore\Model\DataObject\Profile
*/
public function setLinks(?\Pimcore\Model\DataObject\Data\StructuredTable $links)
{
$this->links = $links;
return $this;
}
/**
* Get downloads - Downloads
* @return \Pimcore\Model\DataObject\Data\ElementMetadata[]
*/
public function getDownloads(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("downloads");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("downloads")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set downloads - Downloads
* @param \Pimcore\Model\DataObject\Data\ElementMetadata[] $downloads
* @return \Pimcore\Model\DataObject\Profile
*/
public function setDownloads(?array $downloads)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("downloads");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getDownloads();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $downloads);
if (!$isEqual) {
$this->markFieldDirty("downloads", true);
}
$this->downloads = $fd->preSetData($this, $downloads);
return $this;
}
/**
* Get username - Username
* @return string|null
*/
public function getUsername(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("username");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->username;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set username - Username
* @param string|null $username
* @return \Pimcore\Model\DataObject\Profile
*/
public function setUsername(?string $username)
{
$this->username = $username;
return $this;
}
/**
* Get password - Passwort
* @return string|null
*/
public function getPassword(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("password");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->password;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set password - Passwort
* @param string|null $password
* @return \Pimcore\Model\DataObject\Profile
*/
public function setPassword(?string $password)
{
$this->password = $password;
return $this;
}
/**
* Get activationToken - Aktivierungs-Key
* @return string|null
*/
public function getActivationToken(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("activationToken");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->activationToken;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set activationToken - Aktivierungs-Key
* @param string|null $activationToken
* @return \Pimcore\Model\DataObject\Profile
*/
public function setActivationToken(?string $activationToken)
{
$this->activationToken = $activationToken;
return $this;
}
/**
* Get resetToken - Wiederherstellungs-Key
* @return string|null
*/
public function getResetToken(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("resetToken");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->resetToken;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set resetToken - Wiederherstellungs-Key
* @param string|null $resetToken
* @return \Pimcore\Model\DataObject\Profile
*/
public function setResetToken(?string $resetToken)
{
$this->resetToken = $resetToken;
return $this;
}
/**
* Get signUpCompletionState - Registrierungsstatus
* @return string|null
*/
public function getSignUpCompletionState(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("signUpCompletionState");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->signUpCompletionState;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set signUpCompletionState - Registrierungsstatus
* @param string|null $signUpCompletionState
* @return \Pimcore\Model\DataObject\Profile
*/
public function setSignUpCompletionState(?string $signUpCompletionState)
{
$this->signUpCompletionState = $signUpCompletionState;
return $this;
}
/**
* Get isStaff - 3forone Teammitglied
* @return bool|null
*/
public function getIsStaff(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isStaff");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isStaff;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isStaff - 3forone Teammitglied
* @param bool|null $isStaff
* @return \Pimcore\Model\DataObject\Profile
*/
public function setIsStaff(?bool $isStaff)
{
$this->isStaff = $isStaff;
return $this;
}
/**
* Get roles - Rollen
* @return string[]|null
*/
public function getRoles(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("roles");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->roles;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set roles - Rollen
* @param string[]|null $roles
* @return \Pimcore\Model\DataObject\Profile
*/
public function setRoles(?array $roles)
{
$this->roles = $roles;
return $this;
}
/**
* Get abowireUserId - Abowire User Id
* @return string|null
*/
public function getAbowireUserId(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("abowireUserId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->abowireUserId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set abowireUserId - Abowire User Id
* @param string|null $abowireUserId
* @return \Pimcore\Model\DataObject\Profile
*/
public function setAbowireUserId(?string $abowireUserId)
{
$this->abowireUserId = $abowireUserId;
return $this;
}
/**
* Get preferredLanguage - Bevorzugte Sprache
* @return string|null
*/
public function getPreferredLanguage(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("preferredLanguage");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->preferredLanguage;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set preferredLanguage - Bevorzugte Sprache
* @param string|null $preferredLanguage
* @return \Pimcore\Model\DataObject\Profile
*/
public function setPreferredLanguage(?string $preferredLanguage)
{
$this->preferredLanguage = $preferredLanguage;
return $this;
}
/**
* Get color -
* @return \Pimcore\Model\DataObject\Data\RgbaColor|null
*/
public function getColor(): ?\Pimcore\Model\DataObject\Data\RgbaColor
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("color");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->color;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set color -
* @param \Pimcore\Model\DataObject\Data\RgbaColor|null $color
* @return \Pimcore\Model\DataObject\Profile
*/
public function setColor(?\Pimcore\Model\DataObject\Data\RgbaColor $color)
{
$this->color = $color;
return $this;
}
/**
* Get avatar - Avatar
* @return \Pimcore\Model\Asset\Image|null
*/
public function getAvatar(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("avatar");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->avatar;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set avatar - Avatar
* @param \Pimcore\Model\Asset\Image|null $avatar
* @return \Pimcore\Model\DataObject\Profile
*/
public function setAvatar(?\Pimcore\Model\Asset\Image $avatar)
{
$this->avatar = $avatar;
return $this;
}
/**
* Get banner - Banner
* @return \Pimcore\Model\Asset\Image|null
*/
public function getBanner(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("banner");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->banner;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set banner - Banner
* @param \Pimcore\Model\Asset\Image|null $banner
* @return \Pimcore\Model\DataObject\Profile
*/
public function setBanner(?\Pimcore\Model\Asset\Image $banner)
{
$this->banner = $banner;
return $this;
}
}