<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - legacyId [input]
* - localizedfields [localizedfields]
* -- title [input]
* -- subtitle [input]
* -- teaserLine1 [input]
* -- teaserLine2 [input]
* -- teaserLine3 [input]
* -- teaserLine4 [input]
* -- detailDescription [wysiwyg]
* -- description [wysiwyg]
* -- ownerDescription [textarea]
* -- priceInfo [input]
* - enableCategoriesInForm [checkbox]
* - categories [manyToManyObjectRelation]
* - enableRegionsInForm [checkbox]
* - regions [manyToManyRelation]
* - ignoreRegionsForLink [checkbox]
* - poi [manyToOneRelation]
* - contactName [input]
* - lastname [input]
* - firstname [input]
* - street [input]
* - zip [input]
* - city [input]
* - telefone [input]
* - fax [input]
* - email [input]
* - website [input]
* - map [geopoint]
* - logo [image]
* - disableEnquiryButton [checkbox]
* - isBusTour [checkbox]
* - busDescription [wysiwyg]
* - isYoungStyria [checkbox]
* - bookingUrl [input]
* - organizerUrl [input]
* - teaserImage [hotspotimage]
* - gallery [imageGallery]
* - video1 [video]
* - videoPosition1 [numeric]
* - video2 [video]
* - videoPosition2 [numeric]
* - video3 [video]
* - videoPosition3 [numeric]
* - expireDate [date]
* - nights [numeric]
* - persons [numeric]
* - noFromPrice [checkbox]
* - price [numeric]
* - periods [fieldcollections]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Package\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByLegacyId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getBySubtitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByTeaserLine1($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByTeaserLine2($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByTeaserLine3($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByTeaserLine4($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByDetailDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByOwnerDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByPriceInfo($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByEnableCategoriesInForm($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByEnableRegionsInForm($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByRegions($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByIgnoreRegionsForLink($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByPoi($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByContactName($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByLastname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByFirstname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByStreet($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByZip($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByCity($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByTelefone($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByFax($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByWebsite($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByLogo($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByDisableEnquiryButton($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByIsBusTour($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByBusDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByIsYoungStyria($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByBookingUrl($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByOrganizerUrl($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByVideoPosition1($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByVideoPosition2($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByVideoPosition3($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByExpireDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByNights($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByPersons($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByNoFromPrice($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Package\Listing|\Pimcore\Model\DataObject\Package|null getByPrice($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Package extends Concrete
{
protected $o_classId = "78";
protected $o_className = "Package";
protected $legacyId;
protected $localizedfields;
protected $enableCategoriesInForm;
protected $categories;
protected $enableRegionsInForm;
protected $regions;
protected $ignoreRegionsForLink;
protected $poi;
protected $contactName;
protected $lastname;
protected $firstname;
protected $street;
protected $zip;
protected $city;
protected $telefone;
protected $fax;
protected $email;
protected $website;
protected $map;
protected $logo;
protected $disableEnquiryButton;
protected $isBusTour;
protected $busDescription;
protected $isYoungStyria;
protected $bookingUrl;
protected $organizerUrl;
protected $teaserImage;
protected $gallery;
protected $video1;
protected $videoPosition1;
protected $video2;
protected $videoPosition2;
protected $video3;
protected $videoPosition3;
protected $expireDate;
protected $nights;
protected $persons;
protected $noFromPrice;
protected $price;
protected $periods;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Package
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get legacyId - Legacy ID
* @return string|null
*/
public function getLegacyId()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("legacyId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->legacyId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set legacyId - Legacy ID
* @param string|null $legacyId
* @return \Pimcore\Model\DataObject\Package
*/
public function setLegacyId($legacyId)
{
$this->legacyId = $legacyId;
return $this;
}
/**
* Get localizedfields -
* @return \Pimcore\Model\DataObject\Localizedfield|null
*/
public function getLocalizedfields()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("localizedfields");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get title - Titel
* @return string|null
*/
public function getTitle($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("title", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("title");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get subtitle - Subtitle
* @return string|null
*/
public function getSubtitle($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("subtitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("subtitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get teaserLine1 - Zeile 1
* @return string|null
*/
public function getTeaserLine1($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("teaserLine1", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("teaserLine1");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get teaserLine2 - Zeile 2
* @return string|null
*/
public function getTeaserLine2($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("teaserLine2", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("teaserLine2");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get teaserLine3 - Zeile 3
* @return string|null
*/
public function getTeaserLine3($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("teaserLine3", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("teaserLine3");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get teaserLine4 - Zeile 4
* @return string|null
*/
public function getTeaserLine4($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("teaserLine4", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("teaserLine4");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get detailDescription - Detailbeschreibung
* @return string|null
*/
public function getDetailDescription($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("detailDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("detailDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get description - Einleitungsbeschreibung
* @return string|null
*/
public function getDescription($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("description", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("description");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get ownerDescription - Liegenschaft Hinweistext
* @return string|null
*/
public function getOwnerDescription($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("ownerDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ownerDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get priceInfo - Price Info
* @return string|null
*/
public function getPriceInfo($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("priceInfo", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("priceInfo");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\Package
*/
public function setLocalizedfields($localizedfields)
{
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set title - Titel
* @param string|null $title
* @return \Pimcore\Model\DataObject\Package
*/
public function setTitle ($title, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("title", $title, $language, !$isEqual);
return $this;
}
/**
* Set subtitle - Subtitle
* @param string|null $subtitle
* @return \Pimcore\Model\DataObject\Package
*/
public function setSubtitle ($subtitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("subtitle", $subtitle, $language, !$isEqual);
return $this;
}
/**
* Set teaserLine1 - Zeile 1
* @param string|null $teaserLine1
* @return \Pimcore\Model\DataObject\Package
*/
public function setTeaserLine1 ($teaserLine1, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("teaserLine1", $teaserLine1, $language, !$isEqual);
return $this;
}
/**
* Set teaserLine2 - Zeile 2
* @param string|null $teaserLine2
* @return \Pimcore\Model\DataObject\Package
*/
public function setTeaserLine2 ($teaserLine2, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("teaserLine2", $teaserLine2, $language, !$isEqual);
return $this;
}
/**
* Set teaserLine3 - Zeile 3
* @param string|null $teaserLine3
* @return \Pimcore\Model\DataObject\Package
*/
public function setTeaserLine3 ($teaserLine3, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("teaserLine3", $teaserLine3, $language, !$isEqual);
return $this;
}
/**
* Set teaserLine4 - Zeile 4
* @param string|null $teaserLine4
* @return \Pimcore\Model\DataObject\Package
*/
public function setTeaserLine4 ($teaserLine4, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("teaserLine4", $teaserLine4, $language, !$isEqual);
return $this;
}
/**
* Set detailDescription - Detailbeschreibung
* @param string|null $detailDescription
* @return \Pimcore\Model\DataObject\Package
*/
public function setDetailDescription ($detailDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("detailDescription", $detailDescription, $language, !$isEqual);
return $this;
}
/**
* Set description - Einleitungsbeschreibung
* @param string|null $description
* @return \Pimcore\Model\DataObject\Package
*/
public function setDescription ($description, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("description", $description, $language, !$isEqual);
return $this;
}
/**
* Set ownerDescription - Liegenschaft Hinweistext
* @param string|null $ownerDescription
* @return \Pimcore\Model\DataObject\Package
*/
public function setOwnerDescription ($ownerDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("ownerDescription", $ownerDescription, $language, !$isEqual);
return $this;
}
/**
* Set priceInfo - Price Info
* @param string|null $priceInfo
* @return \Pimcore\Model\DataObject\Package
*/
public function setPriceInfo ($priceInfo, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("priceInfo", $priceInfo, $language, !$isEqual);
return $this;
}
/**
* Get enableCategoriesInForm - Enable categories in contact form
* @return bool|null
*/
public function getEnableCategoriesInForm()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("enableCategoriesInForm");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->enableCategoriesInForm;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set enableCategoriesInForm - Enable categories in contact form
* @param bool|null $enableCategoriesInForm
* @return \Pimcore\Model\DataObject\Package
*/
public function setEnableCategoriesInForm($enableCategoriesInForm)
{
$this->enableCategoriesInForm = $enableCategoriesInForm;
return $this;
}
/**
* Get categories - Kategorien
* @return \Pimcore\Model\DataObject\PackageCategory[]
*/
public function getCategories()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("categories");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("categories")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set categories - Kategorien
* @param \Pimcore\Model\DataObject\PackageCategory[] $categories
* @return \Pimcore\Model\DataObject\Package
*/
public function setCategories($categories)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("categories");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCategories();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $categories);
if (!$isEqual) {
$this->markFieldDirty("categories", true);
}
$this->categories = $fd->preSetData($this, $categories);
return $this;
}
/**
* Get enableRegionsInForm - Enable regions in contact form
* @return bool|null
*/
public function getEnableRegionsInForm()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("enableRegionsInForm");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->enableRegionsInForm;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set enableRegionsInForm - Enable regions in contact form
* @param bool|null $enableRegionsInForm
* @return \Pimcore\Model\DataObject\Package
*/
public function setEnableRegionsInForm($enableRegionsInForm)
{
$this->enableRegionsInForm = $enableRegionsInForm;
return $this;
}
/**
* Get regions - Regionen / Gemeinden
* @return \Pimcore\Model\DataObject\Region[] | \Pimcore\Model\DataObject\Community[]
*/
public function getRegions()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("regions");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("regions")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set regions - Regionen / Gemeinden
* @param \Pimcore\Model\DataObject\Region[] | \Pimcore\Model\DataObject\Community[] $regions
* @return \Pimcore\Model\DataObject\Package
*/
public function setRegions($regions)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyRelation $fd */
$fd = $this->getClass()->getFieldDefinition("regions");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getRegions();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $regions);
if (!$isEqual) {
$this->markFieldDirty("regions", true);
}
$this->regions = $fd->preSetData($this, $regions);
return $this;
}
/**
* Get ignoreRegionsForLink - Ignore regions for detail link
* @return bool|null
*/
public function getIgnoreRegionsForLink()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ignoreRegionsForLink");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->ignoreRegionsForLink;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set ignoreRegionsForLink - Ignore regions for detail link
* @param bool|null $ignoreRegionsForLink
* @return \Pimcore\Model\DataObject\Package
*/
public function setIgnoreRegionsForLink($ignoreRegionsForLink)
{
$this->ignoreRegionsForLink = $ignoreRegionsForLink;
return $this;
}
/**
* Get poi - Contact
* @return \Pimcore\Model\DataObject\Contact|null
*/
public function getPoi()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("poi");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("poi")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set poi - Contact
* @param \Pimcore\Model\DataObject\Contact $poi
* @return \Pimcore\Model\DataObject\Package
*/
public function setPoi($poi)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("poi");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPoi();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $poi);
if (!$isEqual) {
$this->markFieldDirty("poi", true);
}
$this->poi = $fd->preSetData($this, $poi);
return $this;
}
/**
* Get contactName - Kontakt Name
* @return string|null
*/
public function getContactName()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("contactName");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->contactName;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set contactName - Kontakt Name
* @param string|null $contactName
* @return \Pimcore\Model\DataObject\Package
*/
public function setContactName($contactName)
{
$this->contactName = $contactName;
return $this;
}
/**
* Get lastname - Nachname
* @return string|null
*/
public function getLastname()
{
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\Package
*/
public function setLastname($lastname)
{
$this->lastname = $lastname;
return $this;
}
/**
* Get firstname - Vorname
* @return string|null
*/
public function getFirstname()
{
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\Package
*/
public function setFirstname($firstname)
{
$this->firstname = $firstname;
return $this;
}
/**
* Get street - Straße
* @return string|null
*/
public function getStreet()
{
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\Package
*/
public function setStreet($street)
{
$this->street = $street;
return $this;
}
/**
* Get zip - PLZ
* @return string|null
*/
public function getZip()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("zip");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->zip;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set zip - PLZ
* @param string|null $zip
* @return \Pimcore\Model\DataObject\Package
*/
public function setZip($zip)
{
$this->zip = $zip;
return $this;
}
/**
* Get city - Ort
* @return string|null
*/
public function getCity()
{
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 - Ort
* @param string|null $city
* @return \Pimcore\Model\DataObject\Package
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get telefone - Telefon
* @return string|null
*/
public function getTelefone()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("telefone");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->telefone;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set telefone - Telefon
* @param string|null $telefone
* @return \Pimcore\Model\DataObject\Package
*/
public function setTelefone($telefone)
{
$this->telefone = $telefone;
return $this;
}
/**
* Get fax - Fax
* @return string|null
*/
public function getFax()
{
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 - Fax
* @param string|null $fax
* @return \Pimcore\Model\DataObject\Package
*/
public function setFax($fax)
{
$this->fax = $fax;
return $this;
}
/**
* Get email - Email
* @return string|null
*/
public function getEmail()
{
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\Package
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get website - Website
* @return string|null
*/
public function getWebsite()
{
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 - Website
* @param string|null $website
* @return \Pimcore\Model\DataObject\Package
*/
public function setWebsite($website)
{
$this->website = $website;
return $this;
}
/**
* Get map - Map
* @return \Pimcore\Model\DataObject\Data\GeoCoordinates|null
*/
public function getMap()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("map");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->map;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set map - Map
* @param \Pimcore\Model\DataObject\Data\GeoCoordinates|null $map
* @return \Pimcore\Model\DataObject\Package
*/
public function setMap($map)
{
$this->map = $map;
return $this;
}
/**
* Get logo - Logo
* @return \Pimcore\Model\Asset\Image|null
*/
public function getLogo()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("logo");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->logo;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set logo - Logo
* @param \Pimcore\Model\Asset\Image|null $logo
* @return \Pimcore\Model\DataObject\Package
*/
public function setLogo($logo)
{
$this->logo = $logo;
return $this;
}
/**
* Get disableEnquiryButton - Anfragebutton ausblenden
* @return bool|null
*/
public function getDisableEnquiryButton()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("disableEnquiryButton");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->disableEnquiryButton;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set disableEnquiryButton - Anfragebutton ausblenden
* @param bool|null $disableEnquiryButton
* @return \Pimcore\Model\DataObject\Package
*/
public function setDisableEnquiryButton($disableEnquiryButton)
{
$this->disableEnquiryButton = $disableEnquiryButton;
return $this;
}
/**
* Get isBusTour - Busreise
* @return bool|null
*/
public function getIsBusTour()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isBusTour");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isBusTour;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isBusTour - Busreise
* @param bool|null $isBusTour
* @return \Pimcore\Model\DataObject\Package
*/
public function setIsBusTour($isBusTour)
{
$this->isBusTour = $isBusTour;
return $this;
}
/**
* Get busDescription - Preisinformationen
* @return string|null
*/
public function getBusDescription()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("busDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("busDescription")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set busDescription - Preisinformationen
* @param string|null $busDescription
* @return \Pimcore\Model\DataObject\Package
*/
public function setBusDescription($busDescription)
{
$this->busDescription = $busDescription;
return $this;
}
/**
* Get isYoungStyria - is Young Styria
* @return bool|null
*/
public function getIsYoungStyria()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isYoungStyria");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isYoungStyria;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isYoungStyria - is Young Styria
* @param bool|null $isYoungStyria
* @return \Pimcore\Model\DataObject\Package
*/
public function setIsYoungStyria($isYoungStyria)
{
$this->isYoungStyria = $isYoungStyria;
return $this;
}
/**
* Get bookingUrl - Direktbuchungs-URL
* @return string|null
*/
public function getBookingUrl()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("bookingUrl");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->bookingUrl;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set bookingUrl - Direktbuchungs-URL
* @param string|null $bookingUrl
* @return \Pimcore\Model\DataObject\Package
*/
public function setBookingUrl($bookingUrl)
{
$this->bookingUrl = $bookingUrl;
return $this;
}
/**
* Get organizerUrl - Anbieter (URL)
* @return string|null
*/
public function getOrganizerUrl()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("organizerUrl");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->organizerUrl;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set organizerUrl - Anbieter (URL)
* @param string|null $organizerUrl
* @return \Pimcore\Model\DataObject\Package
*/
public function setOrganizerUrl($organizerUrl)
{
$this->organizerUrl = $organizerUrl;
return $this;
}
/**
* Get teaserImage - Teaserbild
* @return \Pimcore\Model\DataObject\Data\Hotspotimage|null
*/
public function getTeaserImage()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("teaserImage");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->teaserImage;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set teaserImage - Teaserbild
* @param \Pimcore\Model\DataObject\Data\Hotspotimage|null $teaserImage
* @return \Pimcore\Model\DataObject\Package
*/
public function setTeaserImage($teaserImage)
{
$this->teaserImage = $teaserImage;
return $this;
}
/**
* Get gallery - Gallerie
* @return \Pimcore\Model\DataObject\Data\ImageGallery|null
*/
public function getGallery()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gallery");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gallery;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gallery - Gallerie
* @param \Pimcore\Model\DataObject\Data\ImageGallery|null $gallery
* @return \Pimcore\Model\DataObject\Package
*/
public function setGallery($gallery)
{
$this->gallery = $gallery;
return $this;
}
/**
* Get video1 - 1. Galerievideo
* @return \Pimcore\Model\DataObject\Data\Video|null
*/
public function getVideo1()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("video1");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->video1;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set video1 - 1. Galerievideo
* @param \Pimcore\Model\DataObject\Data\Video|null $video1
* @return \Pimcore\Model\DataObject\Package
*/
public function setVideo1($video1)
{
$this->video1 = $video1;
return $this;
}
/**
* Get videoPosition1 - Position Video 1
* @return float|null
*/
public function getVideoPosition1()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("videoPosition1");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->videoPosition1;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set videoPosition1 - Position Video 1
* @param float|null $videoPosition1
* @return \Pimcore\Model\DataObject\Package
*/
public function setVideoPosition1($videoPosition1)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("videoPosition1");
$this->videoPosition1 = $fd->preSetData($this, $videoPosition1);
return $this;
}
/**
* Get video2 - 2. Galerievideo
* @return \Pimcore\Model\DataObject\Data\Video|null
*/
public function getVideo2()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("video2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->video2;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set video2 - 2. Galerievideo
* @param \Pimcore\Model\DataObject\Data\Video|null $video2
* @return \Pimcore\Model\DataObject\Package
*/
public function setVideo2($video2)
{
$this->video2 = $video2;
return $this;
}
/**
* Get videoPosition2 - Position Video 2
* @return float|null
*/
public function getVideoPosition2()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("videoPosition2");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->videoPosition2;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set videoPosition2 - Position Video 2
* @param float|null $videoPosition2
* @return \Pimcore\Model\DataObject\Package
*/
public function setVideoPosition2($videoPosition2)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("videoPosition2");
$this->videoPosition2 = $fd->preSetData($this, $videoPosition2);
return $this;
}
/**
* Get video3 - 3. Galerievideo
* @return \Pimcore\Model\DataObject\Data\Video|null
*/
public function getVideo3()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("video3");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->video3;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set video3 - 3. Galerievideo
* @param \Pimcore\Model\DataObject\Data\Video|null $video3
* @return \Pimcore\Model\DataObject\Package
*/
public function setVideo3($video3)
{
$this->video3 = $video3;
return $this;
}
/**
* Get videoPosition3 - Position Video 3
* @return float|null
*/
public function getVideoPosition3()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("videoPosition3");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->videoPosition3;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set videoPosition3 - Position Video 3
* @param float|null $videoPosition3
* @return \Pimcore\Model\DataObject\Package
*/
public function setVideoPosition3($videoPosition3)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("videoPosition3");
$this->videoPosition3 = $fd->preSetData($this, $videoPosition3);
return $this;
}
/**
* Get expireDate - Ablaufdatum
* @return \Carbon\Carbon|null
*/
public function getExpireDate()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("expireDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->expireDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set expireDate - Ablaufdatum
* @param \Carbon\Carbon|null $expireDate
* @return \Pimcore\Model\DataObject\Package
*/
public function setExpireDate($expireDate)
{
$this->expireDate = $expireDate;
return $this;
}
/**
* Get nights - Anzahl Nächte
* @return float|null
*/
public function getNights()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("nights");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->nights;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set nights - Anzahl Nächte
* @param float|null $nights
* @return \Pimcore\Model\DataObject\Package
*/
public function setNights($nights)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("nights");
$this->nights = $fd->preSetData($this, $nights);
return $this;
}
/**
* Get persons - Personen
* @return float|null
*/
public function getPersons()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("persons");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->persons;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set persons - Personen
* @param float|null $persons
* @return \Pimcore\Model\DataObject\Package
*/
public function setPersons($persons)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("persons");
$this->persons = $fd->preSetData($this, $persons);
return $this;
}
/**
* Get noFromPrice - kein "ab"-Preis
* @return bool|null
*/
public function getNoFromPrice()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("noFromPrice");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->noFromPrice;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set noFromPrice - kein "ab"-Preis
* @param bool|null $noFromPrice
* @return \Pimcore\Model\DataObject\Package
*/
public function setNoFromPrice($noFromPrice)
{
$this->noFromPrice = $noFromPrice;
return $this;
}
/**
* Get price - Preis
* @return float|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 - Preis
* @param float|null $price
* @return \Pimcore\Model\DataObject\Package
*/
public function setPrice($price)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("price");
$this->price = $fd->preSetData($this, $price);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getPeriods()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("periods");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("periods")->preGetData($this);
return $data;
}
/**
* Set periods - Gültigkeitszeiträume
* @param \Pimcore\Model\DataObject\Fieldcollection|null $periods
* @return \Pimcore\Model\DataObject\Package
*/
public function setPeriods($periods)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("periods");
$this->periods = $fd->preSetData($this, $periods);
return $this;
}
}