<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - name [input]
* - slug [input]
* - sex [select]
* - ueln [input]
* - birthday [date]
* - weight [numeric]
* - originCountry [country]
* - father [input]
* - mother [input]
* - exhibitor [input]
* - externalStatistics [input]
* - isBlacktype [booleanSelect]
* - coveringFee [quantityValue]
* - coveringFeeYear [numeric]
* - entitledToPremiums [booleanSelect]
* - birthyear [numeric]
* - height [numeric]
* - color [select]
* - price [quantityValue]
* - premiumCountry [country]
* - location [input]
* - achievements [reverseObjectRelation]
* - externalHref [input]
* - externalPicture [input]
* - externalForm [input]
* - externalBet [input]
* - owner [manyToOneRelation]
* - breeder [manyToOneRelation]
* - trainer [manyToOneRelation]
* - jockey [manyToOneRelation]
* - createdBy [manyToOneRelation]
* - racingmanager [manyToOneRelation]
* - modules [objectbricks]
* - image [image]
* - elfsight [input]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Horse\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByName($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getBySlug($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getBySex($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByUeln($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByBirthday($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByWeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByOriginCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByFather($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByMother($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExhibitor($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalStatistics($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByCoveringFeeYear($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByBirthyear($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByHeight($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByColor($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByPremiumCountry($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByLocation($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByAchievements($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalHref($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalPicture($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalForm($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByExternalBet($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByOwner($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByBreeder($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByTrainer($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByJockey($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByCreatedBy($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByRacingmanager($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Horse\Listing|\Pimcore\Model\DataObject\Horse|null getByElfsight($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Horse extends Concrete
{
use \App\Horse\Model\HorseTrait;
protected $o_classId = "horse";
protected $o_className = "Horse";
protected $name;
protected $slug;
protected $sex;
protected $ueln;
protected $birthday;
protected $weight;
protected $originCountry;
protected $father;
protected $mother;
protected $exhibitor;
protected $externalStatistics;
protected $isBlacktype;
protected $coveringFee;
protected $coveringFeeYear;
protected $entitledToPremiums;
protected $birthyear;
protected $height;
protected $color;
protected $price;
protected $premiumCountry;
protected $location;
protected $externalHref;
protected $externalPicture;
protected $externalForm;
protected $externalBet;
protected $owner;
protected $breeder;
protected $trainer;
protected $jockey;
protected $createdBy;
protected $racingmanager;
protected $modules;
protected $image;
protected $elfsight;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Horse
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get name - Name
* @return string|null
*/
public function getName()
{
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\Horse
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get slug - Slug
* @return string|null
*/
public function getSlug()
{
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\Horse
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get sex - Geschlecht
* @return string|null
*/
public function getSex()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sex");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->sex;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set sex - Geschlecht
* @param string|null $sex
* @return \Pimcore\Model\DataObject\Horse
*/
public function setSex($sex)
{
$this->sex = $sex;
return $this;
}
/**
* Get ueln - Universal Equine Life Number
* @return string|null
*/
public function getUeln()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ueln");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->ueln;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set ueln - Universal Equine Life Number
* @param string|null $ueln
* @return \Pimcore\Model\DataObject\Horse
*/
public function setUeln($ueln)
{
$this->ueln = $ueln;
return $this;
}
/**
* Get birthday - Geboren
* @return \Carbon\Carbon|null
*/
public function getBirthday()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("birthday");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->birthday;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set birthday - Geboren
* @param \Carbon\Carbon|null $birthday
* @return \Pimcore\Model\DataObject\Horse
*/
public function setBirthday($birthday)
{
$this->birthday = $birthday;
return $this;
}
/**
* Get weight - Gewicht (Kg)
* @return float|null
*/
public function getWeight()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("weight");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->weight;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set weight - Gewicht (Kg)
* @param float|null $weight
* @return \Pimcore\Model\DataObject\Horse
*/
public function setWeight($weight)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("weight");
$this->weight = $fd->preSetData($this, $weight);
return $this;
}
/**
* Get originCountry - Herkunftsland
* @return string|null
*/
public function getOriginCountry()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("originCountry");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->originCountry;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set originCountry - Herkunftsland
* @param string|null $originCountry
* @return \Pimcore\Model\DataObject\Horse
*/
public function setOriginCountry($originCountry)
{
$this->originCountry = $originCountry;
return $this;
}
/**
* Get father - Vater
* @return string|null
*/
public function getFather()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("father");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->father;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set father - Vater
* @param string|null $father
* @return \Pimcore\Model\DataObject\Horse
*/
public function setFather($father)
{
$this->father = $father;
return $this;
}
/**
* Get mother - Mutter
* @return string|null
*/
public function getMother()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("mother");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->mother;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set mother - Mutter
* @param string|null $mother
* @return \Pimcore\Model\DataObject\Horse
*/
public function setMother($mother)
{
$this->mother = $mother;
return $this;
}
/**
* Get exhibitor - Aussteller
* @return string|null
*/
public function getExhibitor()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("exhibitor");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->exhibitor;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set exhibitor - Aussteller
* @param string|null $exhibitor
* @return \Pimcore\Model\DataObject\Horse
*/
public function setExhibitor($exhibitor)
{
$this->exhibitor = $exhibitor;
return $this;
}
/**
* Get externalStatistics - Externe Statistiken
* @return string|null
*/
public function getExternalStatistics()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("externalStatistics");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->externalStatistics;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set externalStatistics - Externe Statistiken
* @param string|null $externalStatistics
* @return \Pimcore\Model\DataObject\Horse
*/
public function setExternalStatistics($externalStatistics)
{
$this->externalStatistics = $externalStatistics;
return $this;
}
/**
* Get isBlacktype - Blacktype ja/nein
* @return bool|null
*/
public function getIsBlacktype()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isBlacktype");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isBlacktype;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isBlacktype - Blacktype ja/nein
* @param bool|null $isBlacktype
* @return \Pimcore\Model\DataObject\Horse
*/
public function setIsBlacktype($isBlacktype)
{
$this->isBlacktype = $isBlacktype;
return $this;
}
/**
* Get coveringFee - Decktaxe
* @return \Pimcore\Model\DataObject\Data\QuantityValue|null
*/
public function getCoveringFee()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("coveringFee");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->coveringFee;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set coveringFee - Decktaxe
* @param \Pimcore\Model\DataObject\Data\QuantityValue|null $coveringFee
* @return \Pimcore\Model\DataObject\Horse
*/
public function setCoveringFee($coveringFee)
{
$this->coveringFee = $coveringFee;
return $this;
}
/**
* Get coveringFeeYear - coveringFeeYear
* @return float|null
*/
public function getCoveringFeeYear()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("coveringFeeYear");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->coveringFeeYear;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set coveringFeeYear - coveringFeeYear
* @param float|null $coveringFeeYear
* @return \Pimcore\Model\DataObject\Horse
*/
public function setCoveringFeeYear($coveringFeeYear)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("coveringFeeYear");
$this->coveringFeeYear = $fd->preSetData($this, $coveringFeeYear);
return $this;
}
/**
* Get entitledToPremiums - Prämienberechtigung
* @return bool|null
*/
public function getEntitledToPremiums()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("entitledToPremiums");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->entitledToPremiums;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set entitledToPremiums - Prämienberechtigung
* @param bool|null $entitledToPremiums
* @return \Pimcore\Model\DataObject\Horse
*/
public function setEntitledToPremiums($entitledToPremiums)
{
$this->entitledToPremiums = $entitledToPremiums;
return $this;
}
/**
* Get birthyear - birthyear
* @return float|null
*/
public function getBirthyear()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("birthyear");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->birthyear;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set birthyear - birthyear
* @param float|null $birthyear
* @return \Pimcore\Model\DataObject\Horse
*/
public function setBirthyear($birthyear)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("birthyear");
$this->birthyear = $fd->preSetData($this, $birthyear);
return $this;
}
/**
* Get height - Stockmaß (cm)
* @return float|null
*/
public function getHeight()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("height");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->height;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set height - Stockmaß (cm)
* @param float|null $height
* @return \Pimcore\Model\DataObject\Horse
*/
public function setHeight($height)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("height");
$this->height = $fd->preSetData($this, $height);
return $this;
}
/**
* Get color - Farbe
* @return string|null
*/
public function getColor()
{
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 - Farbe
* @param string|null $color
* @return \Pimcore\Model\DataObject\Horse
*/
public function setColor($color)
{
$this->color = $color;
return $this;
}
/**
* Get price - Verkaufspreis
* @return \Pimcore\Model\DataObject\Data\QuantityValue|null
*/
public function getPrice()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("price");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->price;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set price - Verkaufspreis
* @param \Pimcore\Model\DataObject\Data\QuantityValue|null $price
* @return \Pimcore\Model\DataObject\Horse
*/
public function setPrice($price)
{
$this->price = $price;
return $this;
}
/**
* Get premiumCountry - premiumCountry
* @return string|null
*/
public function getPremiumCountry()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("premiumCountry");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->premiumCountry;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set premiumCountry - premiumCountry
* @param string|null $premiumCountry
* @return \Pimcore\Model\DataObject\Horse
*/
public function setPremiumCountry($premiumCountry)
{
$this->premiumCountry = $premiumCountry;
return $this;
}
/**
* Get location - Standort
* @return string|null
*/
public function getLocation()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("location");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->location;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set location - Standort
* @param string|null $location
* @return \Pimcore\Model\DataObject\Horse
*/
public function setLocation($location)
{
$this->location = $location;
return $this;
}
/**
* Get achievements - Erfolge
* @return \Pimcore\Model\DataObject\AbstractObject[]
*/
public function getAchievements()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("achievements");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("achievements")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get externalHref - Externe Verlinkung
* @return string|null
*/
public function getExternalHref()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("externalHref");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->externalHref;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set externalHref - Externe Verlinkung
* @param string|null $externalHref
* @return \Pimcore\Model\DataObject\Horse
*/
public function setExternalHref($externalHref)
{
$this->externalHref = $externalHref;
return $this;
}
/**
* Get externalPicture - Externes Fotos
* @return string|null
*/
public function getExternalPicture()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("externalPicture");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->externalPicture;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set externalPicture - Externes Fotos
* @param string|null $externalPicture
* @return \Pimcore\Model\DataObject\Horse
*/
public function setExternalPicture($externalPicture)
{
$this->externalPicture = $externalPicture;
return $this;
}
/**
* Get externalForm - Externe Form
* @return string|null
*/
public function getExternalForm()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("externalForm");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->externalForm;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set externalForm - Externe Form
* @param string|null $externalForm
* @return \Pimcore\Model\DataObject\Horse
*/
public function setExternalForm($externalForm)
{
$this->externalForm = $externalForm;
return $this;
}
/**
* Get externalBet - Externe Wette
* @return string|null
*/
public function getExternalBet()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("externalBet");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->externalBet;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set externalBet - Externe Wette
* @param string|null $externalBet
* @return \Pimcore\Model\DataObject\Horse
*/
public function setExternalBet($externalBet)
{
$this->externalBet = $externalBet;
return $this;
}
/**
* Get owner - Besitzer
* @return \Pimcore\Model\DataObject\Owner | \Pimcore\Model\DataObject\Studfarm | \Pimcore\Model\DataObject\Profile|null
*/
public function getOwner()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("owner");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("owner")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set owner - Besitzer
* @param \Pimcore\Model\DataObject\Owner | \Pimcore\Model\DataObject\Studfarm | \Pimcore\Model\DataObject\Profile $owner
* @return \Pimcore\Model\DataObject\Horse
*/
public function setOwner($owner)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("owner");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getOwner();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $owner);
if (!$isEqual) {
$this->markFieldDirty("owner", true);
}
$this->owner = $fd->preSetData($this, $owner);
return $this;
}
/**
* Get breeder - Züchter
* @return \Pimcore\Model\DataObject\Profile|null
*/
public function getBreeder()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("breeder");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("breeder")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set breeder - Züchter
* @param \Pimcore\Model\DataObject\Profile $breeder
* @return \Pimcore\Model\DataObject\Horse
*/
public function setBreeder($breeder)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("breeder");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getBreeder();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $breeder);
if (!$isEqual) {
$this->markFieldDirty("breeder", true);
}
$this->breeder = $fd->preSetData($this, $breeder);
return $this;
}
/**
* Get trainer - Trainer
* @return \Pimcore\Model\DataObject\Trainer | \Pimcore\Model\DataObject\Profile|null
*/
public function getTrainer()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("trainer");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("trainer")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set trainer - Trainer
* @param \Pimcore\Model\DataObject\Trainer | \Pimcore\Model\DataObject\Profile $trainer
* @return \Pimcore\Model\DataObject\Horse
*/
public function setTrainer($trainer)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("trainer");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getTrainer();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $trainer);
if (!$isEqual) {
$this->markFieldDirty("trainer", true);
}
$this->trainer = $fd->preSetData($this, $trainer);
return $this;
}
/**
* Get jockey - Jockey
* @return \Pimcore\Model\DataObject\Jockey | \Pimcore\Model\DataObject\Profile|null
*/
public function getJockey()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("jockey");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("jockey")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set jockey - Jockey
* @param \Pimcore\Model\DataObject\Jockey | \Pimcore\Model\DataObject\Profile $jockey
* @return \Pimcore\Model\DataObject\Horse
*/
public function setJockey($jockey)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("jockey");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getJockey();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $jockey);
if (!$isEqual) {
$this->markFieldDirty("jockey", true);
}
$this->jockey = $fd->preSetData($this, $jockey);
return $this;
}
/**
* Get createdBy - Erstellt von
* @return \Pimcore\Model\DataObject\Profile|null
*/
public function getCreatedBy()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("createdBy");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("createdBy")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set createdBy - Erstellt von
* @param \Pimcore\Model\DataObject\Profile $createdBy
* @return \Pimcore\Model\DataObject\Horse
*/
public function setCreatedBy($createdBy)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("createdBy");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCreatedBy();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $createdBy);
if (!$isEqual) {
$this->markFieldDirty("createdBy", true);
}
$this->createdBy = $fd->preSetData($this, $createdBy);
return $this;
}
/**
* Get racingmanager - Racingmanager
* @return \Pimcore\Model\DataObject\Profile|null
*/
public function getRacingmanager()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("racingmanager");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("racingmanager")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set racingmanager - Racingmanager
* @param \Pimcore\Model\DataObject\Profile $racingmanager
* @return \Pimcore\Model\DataObject\Horse
*/
public function setRacingmanager($racingmanager)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("racingmanager");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getRacingmanager();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $racingmanager);
if (!$isEqual) {
$this->markFieldDirty("racingmanager", true);
}
$this->racingmanager = $fd->preSetData($this, $racingmanager);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Horse\Modules
*/
public function getModules()
{
$data = $this->modules;
if (!$data) {
if (\Pimcore\Tool::classExists("\\Pimcore\\Model\\DataObject\\Horse\\Modules")) {
$data = new \Pimcore\Model\DataObject\Horse\Modules($this, "modules");
$this->modules = $data;
} else {
return null;
}
}
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("modules");
if ($preValue !== null) {
return $preValue;
}
}
return $data;
}
/**
* Set modules -
* @param \Pimcore\Model\DataObject\Objectbrick|null $modules
* @return \Pimcore\Model\DataObject\Horse
*/
public function setModules($modules)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Objectbricks $fd */
$fd = $this->getClass()->getFieldDefinition("modules");
$this->modules = $fd->preSetData($this, $modules);
return $this;
}
/**
* Get image - Bild
* @return \Pimcore\Model\Asset\Image|null
*/
public function getImage()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("image");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->image;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set image - Bild
* @param \Pimcore\Model\Asset\Image|null $image
* @return \Pimcore\Model\DataObject\Horse
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
/**
* Get elfsight - Elfsight
* @return string|null
*/
public function getElfsight()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("elfsight");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->elfsight;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set elfsight - Elfsight
* @param string|null $elfsight
* @return \Pimcore\Model\DataObject\Horse
*/
public function setElfsight($elfsight)
{
$this->elfsight = $elfsight;
return $this;
}
}