<?php
/**
* Inheritance: no
* Variants: no
Fields Summary:
- topic [input]
- firstname [firstname]
- lastname [lastname]
- email [email]
- confirm [consent]
- gender [select]
- message [textarea]
- product [input]
- available [input]
- purchased [input]
- lotNumber [input]
- bestBeforeDate [input]
- orderNumber [input]
- phone [input]
- plz [input]
- city [input]
- street [input]
- code [input]
- upload [manyToManyRelation]
- title [input]
- country [input]
- customerNumber [input]
- retoure [input]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByTopic ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByFirstname ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByLastname ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByEmail ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByGender ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByMessage ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByProduct ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByAvailable ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByPurchased ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByLotNumber ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByBestBeforeDate ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByOrderNumber ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByPhone ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByPlz ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCity ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByStreet ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCode ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByUpload ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByTitle ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCountry ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByCustomerNumber ($value, $limit = 0, $offset = 0)
* @method static \Pimcore\Model\DataObject\ContactFormRequest\Listing|\Pimcore\Model\DataObject\ContactFormRequest getByRetoure ($value, $limit = 0, $offset = 0)
*/
class ContactFormRequest extends Concrete {
protected $o_classId = "14";
protected $o_className = "ContactFormRequest";
protected $topic;
protected $firstname;
protected $lastname;
protected $email;
protected $confirm;
protected $gender;
protected $message;
protected $product;
protected $available;
protected $purchased;
protected $lotNumber;
protected $bestBeforeDate;
protected $orderNumber;
protected $phone;
protected $plz;
protected $city;
protected $street;
protected $code;
protected $upload;
protected $title;
protected $country;
protected $customerNumber;
protected $retoure;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get topic - topic
* @return string|null
*/
public function getTopic () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("topic");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->topic;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set topic - topic
* @param string|null $topic
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setTopic ($topic) {
$fd = $this->getClass()->getFieldDefinition("topic");
$this->topic = $topic;
return $this;
}
/**
* Get firstname - Firstname
* @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 - Firstname
* @param string|null $firstname
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setFirstname ($firstname) {
$fd = $this->getClass()->getFieldDefinition("firstname");
$this->firstname = $firstname;
return $this;
}
/**
* Get lastname - Lastname
* @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 - Lastname
* @param string|null $lastname
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setLastname ($lastname) {
$fd = $this->getClass()->getFieldDefinition("lastname");
$this->lastname = $lastname;
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\ContactFormRequest
*/
public function setEmail ($email) {
$fd = $this->getClass()->getFieldDefinition("email");
$this->email = $email;
return $this;
}
/**
* Get confirm - confirm
* @return \Pimcore\Model\DataObject\Data\Consent|null
*/
public function getConfirm () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("confirm");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->confirm;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set confirm - confirm
* @param \Pimcore\Model\DataObject\Data\Consent|null $confirm
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setConfirm ($confirm) {
$fd = $this->getClass()->getFieldDefinition("confirm");
$this->confirm = $confirm;
return $this;
}
/**
* Get gender - Gender
* @return string|null
*/
public function getGender () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gender");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->gender;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gender - Gender
* @param string|null $gender
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setGender ($gender) {
$fd = $this->getClass()->getFieldDefinition("gender");
$this->gender = $gender;
return $this;
}
/**
* Get message - message
* @return string|null
*/
public function getMessage () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("message");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->message;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set message - message
* @param string|null $message
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setMessage ($message) {
$fd = $this->getClass()->getFieldDefinition("message");
$this->message = $message;
return $this;
}
/**
* Get product - product
* @return string|null
*/
public function getProduct () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("product");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->product;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set product - product
* @param string|null $product
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setProduct ($product) {
$fd = $this->getClass()->getFieldDefinition("product");
$this->product = $product;
return $this;
}
/**
* Get available - available
* @return string|null
*/
public function getAvailable () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("available");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->available;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set available - available
* @param string|null $available
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setAvailable ($available) {
$fd = $this->getClass()->getFieldDefinition("available");
$this->available = $available;
return $this;
}
/**
* Get purchased - gekauft
* @return string|null
*/
public function getPurchased () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("purchased");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->purchased;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set purchased - gekauft
* @param string|null $purchased
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setPurchased ($purchased) {
$fd = $this->getClass()->getFieldDefinition("purchased");
$this->purchased = $purchased;
return $this;
}
/**
* Get lotNumber - lot
* @return string|null
*/
public function getLotNumber () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lotNumber");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->lotNumber;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lotNumber - lot
* @param string|null $lotNumber
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setLotNumber ($lotNumber) {
$fd = $this->getClass()->getFieldDefinition("lotNumber");
$this->lotNumber = $lotNumber;
return $this;
}
/**
* Get bestBeforeDate - mhd
* @return string|null
*/
public function getBestBeforeDate () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("bestBeforeDate");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->bestBeforeDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set bestBeforeDate - mhd
* @param string|null $bestBeforeDate
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setBestBeforeDate ($bestBeforeDate) {
$fd = $this->getClass()->getFieldDefinition("bestBeforeDate");
$this->bestBeforeDate = $bestBeforeDate;
return $this;
}
/**
* Get orderNumber - bestellnummer
* @return string|null
*/
public function getOrderNumber () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("orderNumber");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->orderNumber;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set orderNumber - bestellnummer
* @param string|null $orderNumber
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setOrderNumber ($orderNumber) {
$fd = $this->getClass()->getFieldDefinition("orderNumber");
$this->orderNumber = $orderNumber;
return $this;
}
/**
* Get phone - telefon
* @return string|null
*/
public function getPhone () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("phone");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->phone;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set phone - telefon
* @param string|null $phone
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setPhone ($phone) {
$fd = $this->getClass()->getFieldDefinition("phone");
$this->phone = $phone;
return $this;
}
/**
* Get plz - plz
* @return string|null
*/
public function getPlz () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("plz");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->plz;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set plz - plz
* @param string|null $plz
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setPlz ($plz) {
$fd = $this->getClass()->getFieldDefinition("plz");
$this->plz = $plz;
return $this;
}
/**
* Get city - city
* @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 - city
* @param string|null $city
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setCity ($city) {
$fd = $this->getClass()->getFieldDefinition("city");
$this->city = $city;
return $this;
}
/**
* Get street - street
* @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 - street
* @param string|null $street
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setStreet ($street) {
$fd = $this->getClass()->getFieldDefinition("street");
$this->street = $street;
return $this;
}
/**
* Get code - code
* @return string|null
*/
public function getCode () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("code");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->code;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set code - code
* @param string|null $code
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setCode ($code) {
$fd = $this->getClass()->getFieldDefinition("code");
$this->code = $code;
return $this;
}
/**
* Get upload - upload
* @return \Pimcore\Model\Asset[]
*/
public function getUpload () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("upload");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("upload")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set upload - upload
* @param \Pimcore\Model\Asset[] $upload
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setUpload ($upload) {
$fd = $this->getClass()->getFieldDefinition("upload");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getUpload();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $upload);
if (!$isEqual) {
$this->markFieldDirty("upload", true);
}
$this->upload = $fd->preSetData($this, $upload);
return $this;
}
/**
* Get title - title
* @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 - title
* @param string|null $title
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setTitle ($title) {
$fd = $this->getClass()->getFieldDefinition("title");
$this->title = $title;
return $this;
}
/**
* Get country - country
* @return string|null
*/
public function getCountry () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("country");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->country;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set country - country
* @param string|null $country
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setCountry ($country) {
$fd = $this->getClass()->getFieldDefinition("country");
$this->country = $country;
return $this;
}
/**
* Get customerNumber - Kundennummer
* @return string|null
*/
public function getCustomerNumber () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("customerNumber");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->customerNumber;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set customerNumber - Kundennummer
* @param string|null $customerNumber
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setCustomerNumber ($customerNumber) {
$fd = $this->getClass()->getFieldDefinition("customerNumber");
$this->customerNumber = $customerNumber;
return $this;
}
/**
* Get retoure - Rücksendung / Versand
* @return string|null
*/
public function getRetoure () {
if($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("retoure");
if($preValue !== null) {
return $preValue;
}
}
$data = $this->retoure;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set retoure - Rücksendung / Versand
* @param string|null $retoure
* @return \Pimcore\Model\DataObject\ContactFormRequest
*/
public function setRetoure ($retoure) {
$fd = $this->getClass()->getFieldDefinition("retoure");
$this->retoure = $retoure;
return $this;
}
}