<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - teaserImage [image]
* - topArticle [checkbox]
* - articleDate [date]
* - portals [manyToManyObjectRelation]
* - regions [manyToManyObjectRelation]
* - categories [manyToManyObjectRelation]
* - blogThemes [manyToManyObjectRelation]
* - author [manyToOneRelation]
* - legacyId [input]
* - localizedfields [localizedfields]
* -- title [input]
* -- readingTime [numeric]
* -- shortDescription [textarea]
* -- advertismentNote [input]
* -- description [wysiwyg]
* -- additionalDescription [wysiwyg]
* -- metaTitle [input]
* -- metaDescription [textarea]
* - keywords [textarea]
* - textblocks [fieldcollections]
* - authToken [input]
* - submitted [checkbox]
* - verified [checkbox]
* - notified [checkbox]
* - submissionConsent [consent]
* - notifiedPortals [manyToManyObjectRelation]
* - video [video]
* - videoText [input]
* - videoDescription [textarea]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByTeaserImage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByTopArticle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByArticleDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByPortals($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByRegions($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByCategories($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByBlogThemes($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByAuthor($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByLegacyId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByReadingTime($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByShortDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByAdvertismentNote($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByAdditionalDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByMetaTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByMetaDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByKeywords($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByAuthToken($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getBySubmitted($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByVerified($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByNotified($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByNotifiedPortals($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByVideoText($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\BlogArticle\Listing|\Pimcore\Model\DataObject\BlogArticle|null getByVideoDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class BlogArticle extends Concrete
{
protected $o_classId = "BlogArticle";
protected $o_className = "BlogArticle";
protected $teaserImage;
protected $topArticle;
protected $articleDate;
protected $portals;
protected $regions;
protected $categories;
protected $blogThemes;
protected $author;
protected $legacyId;
protected $localizedfields;
protected $keywords;
protected $textblocks;
protected $authToken;
protected $submitted;
protected $verified;
protected $notified;
protected $submissionConsent;
protected $notifiedPortals;
protected $video;
protected $videoText;
protected $videoDescription;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get teaserImage - Vorschaubild
* @return \Pimcore\Model\Asset\Image|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 - Vorschaubild
* @param \Pimcore\Model\Asset\Image|null $teaserImage
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setTeaserImage($teaserImage)
{
$this->teaserImage = $teaserImage;
return $this;
}
/**
* Get topArticle - Top-Artikel
* @return bool|null
*/
public function getTopArticle()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("topArticle");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->topArticle;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set topArticle - Top-Artikel
* @param bool|null $topArticle
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setTopArticle($topArticle)
{
$this->topArticle = $topArticle;
return $this;
}
/**
* Get articleDate - Datum
* @return \Carbon\Carbon|null
*/
public function getArticleDate()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("articleDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->articleDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set articleDate - Datum
* @param \Carbon\Carbon|null $articleDate
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setArticleDate($articleDate)
{
$this->articleDate = $articleDate;
return $this;
}
/**
* Get portals - Portals
* @return \Pimcore\Model\DataObject\BlogPortal[]
*/
public function getPortals()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("portals");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("portals")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set portals - Portals
* @param \Pimcore\Model\DataObject\BlogPortal[] $portals
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setPortals($portals)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("portals");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPortals();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $portals);
if (!$isEqual) {
$this->markFieldDirty("portals", true);
}
$this->portals = $fd->preSetData($this, $portals);
return $this;
}
/**
* Get regions - Regions
* @return \Pimcore\Model\DataObject\Region[]
*/
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 - Regions
* @param \Pimcore\Model\DataObject\Region[] $regions
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setRegions($regions)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $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 categories - Kategorien
* @return \Pimcore\Model\DataObject\BlogCategory[]
*/
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\BlogCategory[] $categories
* @return \Pimcore\Model\DataObject\BlogArticle
*/
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 blogThemes - Themen
* @return \Pimcore\Model\DataObject\BlogTheme[]
*/
public function getBlogThemes()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("blogThemes");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("blogThemes")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set blogThemes - Themen
* @param \Pimcore\Model\DataObject\BlogTheme[] $blogThemes
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setBlogThemes($blogThemes)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("blogThemes");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getBlogThemes();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $blogThemes);
if (!$isEqual) {
$this->markFieldDirty("blogThemes", true);
}
$this->blogThemes = $fd->preSetData($this, $blogThemes);
return $this;
}
/**
* Get author - RedakteurIn
* @return \Pimcore\Model\DataObject\BlogAuthor|null
*/
public function getAuthor()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("author");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("author")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set author - RedakteurIn
* @param \Pimcore\Model\DataObject\BlogAuthor|null $author
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setAuthor($author)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("author");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAuthor();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $author);
if (!$isEqual) {
$this->markFieldDirty("author", true);
}
$this->author = $fd->preSetData($this, $author);
return $this;
}
/**
* Get legacyId - legacyId
* @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 - legacyId
* @param string|null $legacyId
* @return \Pimcore\Model\DataObject\BlogArticle
*/
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 readingTime - Reading Time
* @return int|null
*/
public function getReadingTime($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("readingTime", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("readingTime");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get shortDescription - Kurzbeschreibung
* @return string|null
*/
public function getShortDescription($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("shortDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("shortDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get advertismentNote - Anzeigenhinweis
* @return string|null
*/
public function getAdvertismentNote($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("advertismentNote", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("advertismentNote");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get description - Beschreibung
* @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 additionalDescription - Zusatz (aufklappbar)
* @return string|null
*/
public function getAdditionalDescription($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("additionalDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("additionalDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get metaTitle - Meta Title
* @return string|null
*/
public function getMetaTitle($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("metaTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("metaTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get metaDescription - Meta Description
* @return string|null
*/
public function getMetaDescription($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("metaDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("metaDescription");
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\BlogArticle
*/
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\BlogArticle
*/
public function setTitle ($title, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("title", $title, $language, !$isEqual);
return $this;
}
/**
* Set readingTime - Reading Time
* @param int|null $readingTime
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setReadingTime ($readingTime, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("readingTime", $readingTime, $language, !$isEqual);
return $this;
}
/**
* Set shortDescription - Kurzbeschreibung
* @param string|null $shortDescription
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setShortDescription ($shortDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("shortDescription", $shortDescription, $language, !$isEqual);
return $this;
}
/**
* Set advertismentNote - Anzeigenhinweis
* @param string|null $advertismentNote
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setAdvertismentNote ($advertismentNote, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("advertismentNote", $advertismentNote, $language, !$isEqual);
return $this;
}
/**
* Set description - Beschreibung
* @param string|null $description
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setDescription ($description, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("description", $description, $language, !$isEqual);
return $this;
}
/**
* Set additionalDescription - Zusatz (aufklappbar)
* @param string|null $additionalDescription
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setAdditionalDescription ($additionalDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("additionalDescription", $additionalDescription, $language, !$isEqual);
return $this;
}
/**
* Set metaTitle - Meta Title
* @param string|null $metaTitle
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setMetaTitle ($metaTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("metaTitle", $metaTitle, $language, !$isEqual);
return $this;
}
/**
* Set metaDescription - Meta Description
* @param string|null $metaDescription
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setMetaDescription ($metaDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("metaDescription", $metaDescription, $language, !$isEqual);
return $this;
}
/**
* Get keywords - Keywords
* @return string|null
*/
public function getKeywords()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("keywords");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->keywords;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set keywords - Keywords
* @param string|null $keywords
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setKeywords($keywords)
{
$this->keywords = $keywords;
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getTextblocks(): ?\Pimcore\Model\DataObject\Fieldcollection
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("textblocks");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("textblocks")->preGetData($this);
return $data;
}
/**
* Set textblocks - Textblöcke
* @param \Pimcore\Model\DataObject\Fieldcollection|null $textblocks
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setTextblocks($textblocks)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("textblocks");
$this->textblocks = $fd->preSetData($this, $textblocks);
return $this;
}
/**
* Get authToken - authToken
* @return string|null
*/
public function getAuthToken()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("authToken");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->authToken;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set authToken - authToken
* @param string|null $authToken
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setAuthToken($authToken)
{
$this->authToken = $authToken;
return $this;
}
/**
* Get submitted - Submitted
* @return bool|null
*/
public function getSubmitted()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("submitted");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->submitted;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set submitted - Submitted
* @param bool|null $submitted
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setSubmitted($submitted)
{
$this->submitted = $submitted;
return $this;
}
/**
* Get verified - Verified
* @return bool|null
*/
public function getVerified()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("verified");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->verified;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set verified - Verified
* @param bool|null $verified
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setVerified($verified)
{
$this->verified = $verified;
return $this;
}
/**
* Get notified - Notified
* @return bool|null
*/
public function getNotified()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("notified");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->notified;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set notified - Notified
* @param bool|null $notified
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setNotified($notified)
{
$this->notified = $notified;
return $this;
}
/**
* Get submissionConsent - submissionConsent
* @return \Pimcore\Model\DataObject\Data\Consent|null
*/
public function getSubmissionConsent()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("submissionConsent");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->submissionConsent;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set submissionConsent - submissionConsent
* @param \Pimcore\Model\DataObject\Data\Consent|null $submissionConsent
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setSubmissionConsent($submissionConsent)
{
$this->submissionConsent = $submissionConsent;
return $this;
}
/**
* Get notifiedPortals - Notified Portals
* @return \Pimcore\Model\DataObject\BlogPortal[]
*/
public function getNotifiedPortals()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("notifiedPortals");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("notifiedPortals")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set notifiedPortals - Notified Portals
* @param \Pimcore\Model\DataObject\BlogPortal[] $notifiedPortals
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setNotifiedPortals($notifiedPortals)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("notifiedPortals");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getNotifiedPortals();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $notifiedPortals);
if (!$isEqual) {
$this->markFieldDirty("notifiedPortals", true);
}
$this->notifiedPortals = $fd->preSetData($this, $notifiedPortals);
return $this;
}
/**
* Get video - Video
* @return \Pimcore\Model\DataObject\Data\Video|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 \Pimcore\Model\DataObject\Data\Video|null $video
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setVideo($video)
{
$this->video = $video;
return $this;
}
/**
* Get videoText - Video Text
* @return string|null
*/
public function getVideoText()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("videoText");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->videoText;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set videoText - Video Text
* @param string|null $videoText
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setVideoText($videoText)
{
$this->videoText = $videoText;
return $this;
}
/**
* Get videoDescription - Video Description
* @return string|null
*/
public function getVideoDescription()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("videoDescription");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->videoDescription;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set videoDescription - Video Description
* @param string|null $videoDescription
* @return \Pimcore\Model\DataObject\BlogArticle
*/
public function setVideoDescription($videoDescription)
{
$this->videoDescription = $videoDescription;
return $this;
}
}