<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - title [input]
* - slug [input]
* - start [datetime]
* - end [datetime]
* - lotsCount [input]
* - link [link]
* - auctionType [select]
* - platform [select]
* - iframe [input]
* - video [input]
* - externalAuctionSite [input]
* - auctionhouse [manyToOneRelation]
* - horseFolder [manyToOneRelation]
* - horses [advancedManyToManyObjectRelation]
* - attendees [advancedManyToManyObjectRelation]
* - image [image]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Auction\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getBySlug($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByStart($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByEnd($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByLotsCount($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByAuctionType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByPlatform($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByIframe($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByVideo($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByExternalAuctionSite($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByAuctionhouse($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByHorseFolder($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByHorses($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByAttendees($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Auction\Listing|\Pimcore\Model\DataObject\Auction|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Auction extends Concrete
{
use \App\Auction\Model\AuctionTrait;
protected $o_classId = "auction";
protected $o_className = "Auction";
protected $title;
protected $slug;
protected $start;
protected $end;
protected $lotsCount;
protected $link;
protected $auctionType;
protected $platform;
protected $iframe;
protected $video;
protected $externalAuctionSite;
protected $auctionhouse;
protected $horseFolder;
protected $horses;
protected $attendees;
protected $image;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Auction
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get title - Titel
* @return string|null
*/
public function getTitle()
{
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\Auction
*/
public function setTitle($title)
{
$this->title = $title;
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\Auction
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get start - Beginn
* @return \Carbon\Carbon|null
*/
public function getStart()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("start");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->start;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set start - Beginn
* @param \Carbon\Carbon|null $start
* @return \Pimcore\Model\DataObject\Auction
*/
public function setStart($start)
{
$this->start = $start;
return $this;
}
/**
* Get end - Ende
* @return \Carbon\Carbon|null
*/
public function getEnd()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("end");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->end;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set end - Ende
* @param \Carbon\Carbon|null $end
* @return \Pimcore\Model\DataObject\Auction
*/
public function setEnd($end)
{
$this->end = $end;
return $this;
}
/**
* Get lotsCount - Anzahl Lots
* @return string|null
*/
public function getLotsCount()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lotsCount");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lotsCount;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lotsCount - Anzahl Lots
* @param string|null $lotsCount
* @return \Pimcore\Model\DataObject\Auction
*/
public function setLotsCount($lotsCount)
{
$this->lotsCount = $lotsCount;
return $this;
}
/**
* Get link - Link
* @return \Pimcore\Model\DataObject\Data\Link|null
*/
public function getLink()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("link");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->link;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set link - Link
* @param \Pimcore\Model\DataObject\Data\Link|null $link
* @return \Pimcore\Model\DataObject\Auction
*/
public function setLink($link)
{
$this->link = $link;
return $this;
}
/**
* Get auctionType - Typ
* @return string|null
*/
public function getAuctionType()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("auctionType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->auctionType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set auctionType - Typ
* @param string|null $auctionType
* @return \Pimcore\Model\DataObject\Auction
*/
public function setAuctionType($auctionType)
{
$this->auctionType = $auctionType;
return $this;
}
/**
* Get platform - Plattform
* @return string|null
*/
public function getPlatform()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("platform");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->platform;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set platform - Plattform
* @param string|null $platform
* @return \Pimcore\Model\DataObject\Auction
*/
public function setPlatform($platform)
{
$this->platform = $platform;
return $this;
}
/**
* Get iframe - Externe Ergebnisse
* @return string|null
*/
public function getIframe()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("iframe");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->iframe;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set iframe - Externe Ergebnisse
* @param string|null $iframe
* @return \Pimcore\Model\DataObject\Auction
*/
public function setIframe($iframe)
{
$this->iframe = $iframe;
return $this;
}
/**
* Get video - Video
* @return string|null
*/
public function getVideo()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("video");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->video;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set video - Video
* @param string|null $video
* @return \Pimcore\Model\DataObject\Auction
*/
public function setVideo($video)
{
$this->video = $video;
return $this;
}
/**
* Get externalAuctionSite - Externe Auktionsseite
* @return string|null
*/
public function getExternalAuctionSite()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("externalAuctionSite");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->externalAuctionSite;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set externalAuctionSite - Externe Auktionsseite
* @param string|null $externalAuctionSite
* @return \Pimcore\Model\DataObject\Auction
*/
public function setExternalAuctionSite($externalAuctionSite)
{
$this->externalAuctionSite = $externalAuctionSite;
return $this;
}
/**
* Get auctionhouse - Auktionshaus
* @return \Pimcore\Model\DataObject\Profile | \Pimcore\Model\DataObject\Auctionhouse|null
*/
public function getAuctionhouse()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("auctionhouse");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("auctionhouse")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set auctionhouse - Auktionshaus
* @param \Pimcore\Model\DataObject\Profile | \Pimcore\Model\DataObject\Auctionhouse $auctionhouse
* @return \Pimcore\Model\DataObject\Auction
*/
public function setAuctionhouse($auctionhouse)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("auctionhouse");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAuctionhouse();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $auctionhouse);
if (!$isEqual) {
$this->markFieldDirty("auctionhouse", true);
}
$this->auctionhouse = $fd->preSetData($this, $auctionhouse);
return $this;
}
/**
* Get horseFolder - Pferdeordner
* @return \Pimcore\Model\DataObject\Folder|null
*/
public function getHorseFolder()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("horseFolder");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("horseFolder")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set horseFolder - Pferdeordner
* @param \Pimcore\Model\DataObject\Folder $horseFolder
* @return \Pimcore\Model\DataObject\Auction
*/
public function setHorseFolder($horseFolder)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("horseFolder");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getHorseFolder();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $horseFolder);
if (!$isEqual) {
$this->markFieldDirty("horseFolder", true);
}
$this->horseFolder = $fd->preSetData($this, $horseFolder);
return $this;
}
/**
* Get horses - Pferde
* @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
*/
public function getHorses()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("horses");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("horses")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set horses - Pferde
* @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $horses
* @return \Pimcore\Model\DataObject\Auction
*/
public function setHorses($horses)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("horses");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getHorses();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $horses);
if (!$isEqual) {
$this->markFieldDirty("horses", true);
}
$this->horses = $fd->preSetData($this, $horses);
return $this;
}
/**
* Get attendees - Teilnehmer
* @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
*/
public function getAttendees()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("attendees");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("attendees")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set attendees - Teilnehmer
* @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $attendees
* @return \Pimcore\Model\DataObject\Auction
*/
public function setAttendees($attendees)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("attendees");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAttendees();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $attendees);
if (!$isEqual) {
$this->markFieldDirty("attendees", true);
}
$this->attendees = $fd->preSetData($this, $attendees);
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\Auction
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
}