<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - email [input]
* - firstname [input]
* - lastname [input]
* - subject [input]
* - mobile [input]
* - message [textarea]
* - platform [select]
* - technicalData [textarea]
* - hiddenData [textarea]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Contact\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByFirstname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByLastname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getBySubject($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByMobile($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByMessage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByPlatform($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByTechnicalData($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Contact\Listing|\Pimcore\Model\DataObject\Contact|null getByHiddenData($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Contact extends \App\Model\Contact
{
protected $o_classId = "10";
protected $o_className = "Contact";
protected $email;
protected $firstname;
protected $lastname;
protected $subject;
protected $mobile;
protected $message;
protected $platform;
protected $technicalData;
protected $hiddenData;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Contact
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get email - E-mail cím
* @return string|null
*/
public function getEmail(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("email");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->email;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set email - E-mail cím
* @param string|null $email
* @return \Pimcore\Model\DataObject\Contact
*/
public function setEmail(?string $email)
{
$this->email = $email;
return $this;
}
/**
* Get firstname - Keresztnév
* @return string|null
*/
public function getFirstname(): ?string
{
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 - Keresztnév
* @param string|null $firstname
* @return \Pimcore\Model\DataObject\Contact
*/
public function setFirstname(?string $firstname)
{
$this->firstname = $firstname;
return $this;
}
/**
* Get lastname - Vezetéknév
* @return string|null
*/
public function getLastname(): ?string
{
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 - Vezetéknév
* @param string|null $lastname
* @return \Pimcore\Model\DataObject\Contact
*/
public function setLastname(?string $lastname)
{
$this->lastname = $lastname;
return $this;
}
/**
* Get subject - Tárgy
* @return string|null
*/
public function getSubject(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("subject");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->subject;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set subject - Tárgy
* @param string|null $subject
* @return \Pimcore\Model\DataObject\Contact
*/
public function setSubject(?string $subject)
{
$this->subject = $subject;
return $this;
}
/**
* Get mobile - Telefonszám
* @return string|null
*/
public function getMobile(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("mobile");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->mobile;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set mobile - Telefonszám
* @param string|null $mobile
* @return \Pimcore\Model\DataObject\Contact
*/
public function setMobile(?string $mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Get message - Üzenet
* @return string|null
*/
public function getMessage(): ?string
{
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 - Üzenet
* @param string|null $message
* @return \Pimcore\Model\DataObject\Contact
*/
public function setMessage(?string $message)
{
$this->message = $message;
return $this;
}
/**
* Get platform - Platform
* @return string|null
*/
public function getPlatform(): ?string
{
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 - Platform
* @param string|null $platform
* @return \Pimcore\Model\DataObject\Contact
*/
public function setPlatform(?string $platform)
{
$this->platform = $platform;
return $this;
}
/**
* Get technicalData - Technical Data
* @return string|null
*/
public function getTechnicalData(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("technicalData");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->technicalData;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set technicalData - Technical Data
* @param string|null $technicalData
* @return \Pimcore\Model\DataObject\Contact
*/
public function setTechnicalData(?string $technicalData)
{
$this->technicalData = $technicalData;
return $this;
}
/**
* Get hiddenData - Hidden Data
* @return string|null
*/
public function getHiddenData(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("hiddenData");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->hiddenData;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set hiddenData - Hidden Data
* @param string|null $hiddenData
* @return \Pimcore\Model\DataObject\Contact
*/
public function setHiddenData(?string $hiddenData)
{
$this->hiddenData = $hiddenData;
return $this;
}
}