<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - localizedfields [localizedfields]
* -- languagefolder [manyToOneRelation]
* -- navstartnodeid [manyToOneRelation]
* -- menuefooter [manyToOneRelation]
* -- startseite [manyToOneRelation]
* -- showlanguage [checkbox]
* - domainroot [manyToOneRelation]
* - gruntcache [checkbox]
* - cacheparam [checkbox]
* - imageoptim [checkbox]
* - getfile [select]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Configset\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByLanguagefolder($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByNavstartnodeid($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByMenuefooter($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByStartseite($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByShowlanguage($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByDomainroot($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByGruntcache($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByCacheparam($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByImageoptim($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Configset\Listing|\Pimcore\Model\DataObject\Configset|null getByGetfile($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Configset extends Concrete
{
protected $o_classId = "3";
protected $o_className = "configset";
protected $localizedfields;
protected $domainroot;
protected $gruntcache;
protected $cacheparam;
protected $imageoptim;
protected $getfile;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Configset
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get localizedfields - Navigation
* @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 languagefolder - Startelement Sprache
* @return \Pimcore\Model\Document\Page|null
*/
public function getLanguagefolder($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("languagefolder", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("languagefolder");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get navstartnodeid - NavStartNodeId
* @return \Pimcore\Model\Document\Page|null
*/
public function getNavstartnodeid($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("navstartnodeid", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("navstartnodeid");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get menuefooter - MenĂ¼-Footer Snippet
* @return \Pimcore\Model\Document\Snippet|null
*/
public function getMenuefooter($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("menuefooter", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("menuefooter");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get startseite - Startseite
* @return \Pimcore\Model\Document\Page | \Pimcore\Model\Document\Snippet | \Pimcore\Model\Document|null
*/
public function getStartseite($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("startseite", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("startseite");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get showlanguage - Sprachauswahl zeigen
* @return bool|null
*/
public function getShowlanguage($language = null)
{
$data = $this->getLocalizedfields()->getLocalizedValue("showlanguage", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("showlanguage");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localizedfields - Navigation
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\Configset
*/
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 languagefolder - Startelement Sprache
* @param \Pimcore\Model\Document\Page|null $languagefolder
* @return \Pimcore\Model\DataObject\Configset
*/
public function setLanguagefolder ($languagefolder, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("languagefolder");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLanguagefolder($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $languagefolder);
if (!$isEqual) {
$this->markFieldDirty("languagefolder", true);
}
$this->getLocalizedfields()->setLocalizedValue("languagefolder", $languagefolder, $language, !$isEqual);
return $this;
}
/**
* Set navstartnodeid - NavStartNodeId
* @param \Pimcore\Model\Document\Page|null $navstartnodeid
* @return \Pimcore\Model\DataObject\Configset
*/
public function setNavstartnodeid ($navstartnodeid, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("navstartnodeid");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getNavstartnodeid($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $navstartnodeid);
if (!$isEqual) {
$this->markFieldDirty("navstartnodeid", true);
}
$this->getLocalizedfields()->setLocalizedValue("navstartnodeid", $navstartnodeid, $language, !$isEqual);
return $this;
}
/**
* Set menuefooter - MenĂ¼-Footer Snippet
* @param \Pimcore\Model\Document\Snippet|null $menuefooter
* @return \Pimcore\Model\DataObject\Configset
*/
public function setMenuefooter ($menuefooter, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("menuefooter");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getMenuefooter($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $menuefooter);
if (!$isEqual) {
$this->markFieldDirty("menuefooter", true);
}
$this->getLocalizedfields()->setLocalizedValue("menuefooter", $menuefooter, $language, !$isEqual);
return $this;
}
/**
* Set startseite - Startseite
* @param \Pimcore\Model\Document\Page | \Pimcore\Model\Document\Snippet | \Pimcore\Model\Document|null $startseite
* @return \Pimcore\Model\DataObject\Configset
*/
public function setStartseite ($startseite, $language = null)
{
$fd = $this->getClass()->getFieldDefinition("localizedfields")->getFieldDefinition("startseite");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getStartseite($language);
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $startseite);
if (!$isEqual) {
$this->markFieldDirty("startseite", true);
}
$this->getLocalizedfields()->setLocalizedValue("startseite", $startseite, $language, !$isEqual);
return $this;
}
/**
* Set showlanguage - Sprachauswahl zeigen
* @param bool|null $showlanguage
* @return \Pimcore\Model\DataObject\Configset
*/
public function setShowlanguage ($showlanguage, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("showlanguage", $showlanguage, $language, !$isEqual);
return $this;
}
/**
* Get domainroot - Domain-Root
* @return \Pimcore\Model\Document\Page|null
*/
public function getDomainroot()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("domainroot");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("domainroot")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set domainroot - Domain-Root
* @param \Pimcore\Model\Document\Page|null $domainroot
* @return \Pimcore\Model\DataObject\Configset
*/
public function setDomainroot($domainroot)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("domainroot");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getDomainroot();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $domainroot);
if (!$isEqual) {
$this->markFieldDirty("domainroot", true);
}
$this->domainroot = $fd->preSetData($this, $domainroot);
return $this;
}
/**
* Get gruntcache - Grunt Cache
* @return bool|null
*/
public function getGruntcache()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gruntcache");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gruntcache;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gruntcache - Grunt Cache
* @param bool|null $gruntcache
* @return \Pimcore\Model\DataObject\Configset
*/
public function setGruntcache($gruntcache)
{
$this->gruntcache = $gruntcache;
return $this;
}
/**
* Get cacheparam - Cache Parameter
* @return bool|null
*/
public function getCacheparam()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("cacheparam");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->cacheparam;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set cacheparam - Cache Parameter
* @param bool|null $cacheparam
* @return \Pimcore\Model\DataObject\Configset
*/
public function setCacheparam($cacheparam)
{
$this->cacheparam = $cacheparam;
return $this;
}
/**
* Get imageoptim - ImageOptim nutzen
* @return bool|null
*/
public function getImageoptim()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("imageoptim");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->imageoptim;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set imageoptim - ImageOptim nutzen
* @param bool|null $imageoptim
* @return \Pimcore\Model\DataObject\Configset
*/
public function setImageoptim($imageoptim)
{
$this->imageoptim = $imageoptim;
return $this;
}
/**
* Get getfile - get File per curl oder file_get_contents
* @return string|null
*/
public function getGetfile()
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("getfile");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getfile;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set getfile - get File per curl oder file_get_contents
* @param string|null $getfile
* @return \Pimcore\Model\DataObject\Configset
*/
public function setGetfile($getfile)
{
$this->getfile = $getfile;
return $this;
}
}