<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - date [date]
* - image [image]
* - title [input]
* - hoursPerWeek [input]
* - subTitle [input]
* - overviewText [wysiwyg]
* - AFASUrl [link]
* - intro [wysiwyg]
* - function [wysiwyg]
* - aboutYou [wysiwyg]
* - vakteam [manyToOneRelation]
* - offer [wysiwyg]
* - info [wysiwyg]
* - pdf [manyToOneRelation]
* - closeDate [date]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Job\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByImage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByHoursPerWeek($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getBySubTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByOverviewText($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByIntro($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByFunction($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByAboutYou($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByVakteam($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByOffer($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByInfo($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByPdf($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Job\Listing|\Pimcore\Model\DataObject\Job|null getByCloseDate($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Job extends Concrete
{
protected $o_classId = "job";
protected $o_className = "Job";
protected $date;
protected $image;
protected $title;
protected $hoursPerWeek;
protected $subTitle;
protected $overviewText;
protected $AFASUrl;
protected $intro;
protected $function;
protected $aboutYou;
protected $vakteam;
protected $offer;
protected $info;
protected $pdf;
protected $closeDate;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Job
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get date - Date
* @return \Carbon\Carbon|null
*/
public function getDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("date");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->date;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set date - Date
* @param \Carbon\Carbon|null $date
* @return \Pimcore\Model\DataObject\Job
*/
public function setDate(?\Carbon\Carbon $date)
{
$this->date = $date;
return $this;
}
/**
* Get image - Image
* @return \Pimcore\Model\Asset\Image|null
*/
public function getImage(): ?\Pimcore\Model\Asset\Image
{
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 - Image
* @param \Pimcore\Model\Asset\Image|null $image
* @return \Pimcore\Model\DataObject\Job
*/
public function setImage(?\Pimcore\Model\Asset\Image $image)
{
$this->image = $image;
return $this;
}
/**
* Get title - Title
* @return string|null
*/
public function getTitle(): ?string
{
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\Job
*/
public function setTitle(?string $title)
{
$this->title = $title;
return $this;
}
/**
* Get hoursPerWeek - Hours Per Week
* @return string|null
*/
public function getHoursPerWeek(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("hoursPerWeek");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->hoursPerWeek;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set hoursPerWeek - Hours Per Week
* @param string|null $hoursPerWeek
* @return \Pimcore\Model\DataObject\Job
*/
public function setHoursPerWeek(?string $hoursPerWeek)
{
$this->hoursPerWeek = $hoursPerWeek;
return $this;
}
/**
* Get subTitle - Sub-kop
* @return string|null
*/
public function getSubTitle(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("subTitle");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->subTitle;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set subTitle - Sub-kop
* @param string|null $subTitle
* @return \Pimcore\Model\DataObject\Job
*/
public function setSubTitle(?string $subTitle)
{
$this->subTitle = $subTitle;
return $this;
}
/**
* Get overviewText - Overview Text
* @return string|null
*/
public function getOverviewText(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("overviewText");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("overviewText")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set overviewText - Overview Text
* @param string|null $overviewText
* @return \Pimcore\Model\DataObject\Job
*/
public function setOverviewText(?string $overviewText)
{
$this->overviewText = $overviewText;
return $this;
}
/**
* Get AFASUrl - AFAS Url
* @return \Pimcore\Model\DataObject\Data\Link|null
*/
public function getAFASUrl(): ?\Pimcore\Model\DataObject\Data\Link
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("AFASUrl");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->AFASUrl;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set AFASUrl - AFAS Url
* @param \Pimcore\Model\DataObject\Data\Link|null $AFASUrl
* @return \Pimcore\Model\DataObject\Job
*/
public function setAFASUrl(?\Pimcore\Model\DataObject\Data\Link $AFASUrl)
{
$this->AFASUrl = $AFASUrl;
return $this;
}
/**
* Get intro - Intro
* @return string|null
*/
public function getIntro(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("intro");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("intro")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set intro - Intro
* @param string|null $intro
* @return \Pimcore\Model\DataObject\Job
*/
public function setIntro(?string $intro)
{
$this->intro = $intro;
return $this;
}
/**
* Get function - Dit ga je doen
* @return string|null
*/
public function getFunction(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("function");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("function")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set function - Dit ga je doen
* @param string|null $function
* @return \Pimcore\Model\DataObject\Job
*/
public function setFunction(?string $function)
{
$this->function = $function;
return $this;
}
/**
* Get aboutYou - Dit ben jij
* @return string|null
*/
public function getAboutYou(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("aboutYou");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("aboutYou")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set aboutYou - Dit ben jij
* @param string|null $aboutYou
* @return \Pimcore\Model\DataObject\Job
*/
public function setAboutYou(?string $aboutYou)
{
$this->aboutYou = $aboutYou;
return $this;
}
/**
* Get vakteam - Vakteam
* @return \Pimcore\Model\DataObject\Vakteam|null
*/
public function getVakteam(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("vakteam");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("vakteam")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set vakteam - Vakteam
* @param \Pimcore\Model\DataObject\Vakteam|null $vakteam
* @return \Pimcore\Model\DataObject\Job
*/
public function setVakteam(?\Pimcore\Model\Element\AbstractElement $vakteam)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("vakteam");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getVakteam();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $vakteam);
if (!$isEqual) {
$this->markFieldDirty("vakteam", true);
}
$this->vakteam = $fd->preSetData($this, $vakteam);
return $this;
}
/**
* Get offer - Wij bieden
* @return string|null
*/
public function getOffer(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("offer");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("offer")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set offer - Wij bieden
* @param string|null $offer
* @return \Pimcore\Model\DataObject\Job
*/
public function setOffer(?string $offer)
{
$this->offer = $offer;
return $this;
}
/**
* Get info - Informatie & Sollicitatie
* @return string|null
*/
public function getInfo(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("info");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("info")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set info - Informatie & Sollicitatie
* @param string|null $info
* @return \Pimcore\Model\DataObject\Job
*/
public function setInfo(?string $info)
{
$this->info = $info;
return $this;
}
/**
* Get pdf - Pdf
* @return \Pimcore\Model\Asset\Document|null
*/
public function getPdf(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("pdf");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("pdf")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set pdf - Pdf
* @param \Pimcore\Model\Asset\Document|null $pdf
* @return \Pimcore\Model\DataObject\Job
*/
public function setPdf(?\Pimcore\Model\Element\AbstractElement $pdf)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("pdf");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPdf();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $pdf);
if (!$isEqual) {
$this->markFieldDirty("pdf", true);
}
$this->pdf = $fd->preSetData($this, $pdf);
return $this;
}
/**
* Get closeDate - Close Date
* @return \Carbon\Carbon|null
*/
public function getCloseDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("closeDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->closeDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set closeDate - Close Date
* @param \Carbon\Carbon|null $closeDate
* @return \Pimcore\Model\DataObject\Job
*/
public function setCloseDate(?\Carbon\Carbon $closeDate)
{
$this->closeDate = $closeDate;
return $this;
}
}