<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - name [input]
* - function [input]
* - phone [input]
* - email [input]
* - facebook [input]
* - linkedin [input]
* - xing [input]
* - instagram [input]
* - text [wysiwyg]
* - category [manyToManyRelation]
* - plant [booleanSelect]
* - teaserSize [select]
* - filter [checkbox]
* - portraitimage [image]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByFunction($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByPhone($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByFacebook($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByLinkedin($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByXing($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByInstagram($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByText($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByCategory($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByTeaserSize($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByFilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\TeamPerson\Listing|\Pimcore\Model\DataObject\TeamPerson|null getByPortraitimage($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class TeamPerson extends Concrete
{
protected $o_classId = "teamPerson";
protected $o_className = "teamPerson";
protected $name;
protected $function;
protected $phone;
protected $email;
protected $facebook;
protected $linkedin;
protected $xing;
protected $instagram;
protected $text;
protected $category;
protected $plant;
protected $teaserSize;
protected $filter;
protected $portraitimage;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get name - Name
* @return string|null
*/
public function getName(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("name");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->name;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set name - Name
* @param string|null $name
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setName(?string $name)
{
$this->name = $name;
return $this;
}
/**
* Get function - Funktion
* @return string|null
*/
public function getFunction(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("function");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->function;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set function - Funktion
* @param string|null $function
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setFunction(?string $function)
{
$this->function = $function;
return $this;
}
/**
* Get phone - Telefon
* @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 - Telefon
* @param string|null $phone
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setPhone(?string $phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get email - Email
* @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 - Email
* @param string|null $email
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setEmail(?string $email)
{
$this->email = $email;
return $this;
}
/**
* Get facebook - Facebook
* @return string|null
*/
public function getFacebook(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("facebook");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->facebook;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set facebook - Facebook
* @param string|null $facebook
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setFacebook(?string $facebook)
{
$this->facebook = $facebook;
return $this;
}
/**
* Get linkedin - URL linkedin
* @return string|null
*/
public function getLinkedin(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("linkedin");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->linkedin;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set linkedin - URL linkedin
* @param string|null $linkedin
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setLinkedin(?string $linkedin)
{
$this->linkedin = $linkedin;
return $this;
}
/**
* Get xing - URL xing
* @return string|null
*/
public function getXing(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("xing");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->xing;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set xing - URL xing
* @param string|null $xing
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setXing(?string $xing)
{
$this->xing = $xing;
return $this;
}
/**
* Get instagram - URL instagram
* @return string|null
*/
public function getInstagram(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("instagram");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->instagram;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set instagram - URL instagram
* @param string|null $instagram
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setInstagram(?string $instagram)
{
$this->instagram = $instagram;
return $this;
}
/**
* Get text - Text
* @return string|null
*/
public function getText(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("text");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("text")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set text - Text
* @param string|null $text
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setText(?string $text)
{
$this->text = $text;
return $this;
}
/**
* Get category - Category
* @return \Pimcore\Model\DataObject\Category[]
*/
public function getCategory(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("category");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("category")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set category - Category
* @param \Pimcore\Model\DataObject\Category[] $category
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setCategory(?array $category)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("category");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategory();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $category);
if (!$isEqual) {
$this->markFieldDirty("category", true);
}
$this->category = $fd->preSetData($this, $category);
return $this;
}
/**
* Get plant - Plant
* @return bool|null
*/
public function getPlant(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("plant");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->plant;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set plant - Plant
* @param bool|null $plant
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setPlant(?bool $plant)
{
$this->plant = $plant;
return $this;
}
/**
* Get teaserSize - Teaser Size
* @return string|null
*/
public function getTeaserSize(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("teaserSize");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->teaserSize;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set teaserSize - Teaser Size
* @param string|null $teaserSize
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setTeaserSize(?string $teaserSize)
{
$this->teaserSize = $teaserSize;
return $this;
}
/**
* Get filter - Filter
* @return bool|null
*/
public function getFilter(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("filter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->filter;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set filter - Filter
* @param bool|null $filter
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setFilter(?bool $filter)
{
$this->filter = $filter;
return $this;
}
/**
* Get portraitimage - Portraitimage
* @return \Pimcore\Model\Asset\Image|null
*/
public function getPortraitimage(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("portraitimage");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->portraitimage;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set portraitimage - Portraitimage
* @param \Pimcore\Model\Asset\Image|null $portraitimage
* @return \Pimcore\Model\DataObject\TeamPerson
*/
public function setPortraitimage(?\Pimcore\Model\Asset\Image $portraitimage)
{
$this->portraitimage = $portraitimage;
return $this;
}
}