<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - siteId [numeric]
* - localizedfields [localizedfields]
* -- name [input]
* -- slug [input]
* -- title [input]
* -- subtitle [input]
* -- sectionIntroduceTitle [input]
* -- sectionProjectTitle [input]
* -- sectionBrandTitle [input]
* -- sectionBrandDescription [input]
* -- sectionNewsTitle [input]
* -- sectionPartnerTitle [input]
* -- newsCategorySlug [input]
* -- description [wysiwyg]
* - isProperty [checkbox]
* - isEcosystem [checkbox]
* - isShowFilter [checkbox]
* - colors [fieldcollections]
* - heroSlider [fieldcollections]
* - heroImage [image]
* - background [image]
* - brands [fieldcollections]
* - partners [fieldcollections]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\Projecttype\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySiteId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySubtitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionIntroduceTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionProjectTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionBrandTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionBrandDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionNewsTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getBySectionPartnerTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByNewsCategorySlug($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByIsProperty($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByIsEcosystem($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByIsShowFilter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByHeroImage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\Projecttype\Listing|\Pimcore\Model\DataObject\Projecttype|null getByBackground($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class Projecttype extends Concrete
{
protected $o_classId = "projecttype";
protected $o_className = "Projecttype";
protected $siteId;
protected $localizedfields;
protected $isProperty;
protected $isEcosystem;
protected $isShowFilter;
protected $colors;
protected $heroSlider;
protected $heroImage;
protected $background;
protected $brands;
protected $partners;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\Projecttype
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get siteId - Site ID
* @return int|null
*/
public function getSiteId(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("siteId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->siteId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set siteId - Site ID
* @param int|null $siteId
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSiteId(?int $siteId)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("siteId");
$this->siteId = $fd->preSetData($this, $siteId);
return $this;
}
/**
* Get localizedfields -
* @return \Pimcore\Model\DataObject\Localizedfield|null
*/
public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
{
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 name - Name
* @return string|null
*/
public function getName($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("name", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("name");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get slug - Slug
* @return string|null
*/
public function getSlug($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("slug", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("slug");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get title - Title
* @return string|null
*/
public function getTitle($language = null): ?string
{
$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 subtitle - Subtitle
* @return string|null
*/
public function getSubtitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("subtitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("subtitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get sectionIntroduceTitle - Section Introduce Title
* @return string|null
*/
public function getSectionIntroduceTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("sectionIntroduceTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sectionIntroduceTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get sectionProjectTitle - Section project title
* @return string|null
*/
public function getSectionProjectTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("sectionProjectTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sectionProjectTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get sectionBrandTitle - Section Brand Title
* @return string|null
*/
public function getSectionBrandTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("sectionBrandTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sectionBrandTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get sectionBrandDescription - Section brand description
* @return string|null
*/
public function getSectionBrandDescription($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("sectionBrandDescription", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sectionBrandDescription");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get sectionNewsTitle - Section news title
* @return string|null
*/
public function getSectionNewsTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("sectionNewsTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sectionNewsTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get sectionPartnerTitle - Section partner title
* @return string|null
*/
public function getSectionPartnerTitle($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("sectionPartnerTitle", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("sectionPartnerTitle");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get newsCategorySlug - News Category Slug
* @return string|null
*/
public function getNewsCategorySlug($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("newsCategorySlug", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("newsCategorySlug");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get description - Description
* @return string|null
*/
public function getDescription($language = null): ?string
{
$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;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $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 name - Name
* @param string|null $name
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setName (?string $name, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("name", $name, $language, !$isEqual);
return $this;
}
/**
* Set slug - Slug
* @param string|null $slug
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSlug (?string $slug, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("slug", $slug, $language, !$isEqual);
return $this;
}
/**
* Set title - Title
* @param string|null $title
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setTitle (?string $title, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("title", $title, $language, !$isEqual);
return $this;
}
/**
* Set subtitle - Subtitle
* @param string|null $subtitle
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSubtitle (?string $subtitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("subtitle", $subtitle, $language, !$isEqual);
return $this;
}
/**
* Set sectionIntroduceTitle - Section Introduce Title
* @param string|null $sectionIntroduceTitle
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSectionIntroduceTitle (?string $sectionIntroduceTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("sectionIntroduceTitle", $sectionIntroduceTitle, $language, !$isEqual);
return $this;
}
/**
* Set sectionProjectTitle - Section project title
* @param string|null $sectionProjectTitle
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSectionProjectTitle (?string $sectionProjectTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("sectionProjectTitle", $sectionProjectTitle, $language, !$isEqual);
return $this;
}
/**
* Set sectionBrandTitle - Section Brand Title
* @param string|null $sectionBrandTitle
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSectionBrandTitle (?string $sectionBrandTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("sectionBrandTitle", $sectionBrandTitle, $language, !$isEqual);
return $this;
}
/**
* Set sectionBrandDescription - Section brand description
* @param string|null $sectionBrandDescription
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSectionBrandDescription (?string $sectionBrandDescription, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("sectionBrandDescription", $sectionBrandDescription, $language, !$isEqual);
return $this;
}
/**
* Set sectionNewsTitle - Section news title
* @param string|null $sectionNewsTitle
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSectionNewsTitle (?string $sectionNewsTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("sectionNewsTitle", $sectionNewsTitle, $language, !$isEqual);
return $this;
}
/**
* Set sectionPartnerTitle - Section partner title
* @param string|null $sectionPartnerTitle
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setSectionPartnerTitle (?string $sectionPartnerTitle, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("sectionPartnerTitle", $sectionPartnerTitle, $language, !$isEqual);
return $this;
}
/**
* Set newsCategorySlug - News Category Slug
* @param string|null $newsCategorySlug
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setNewsCategorySlug (?string $newsCategorySlug, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("newsCategorySlug", $newsCategorySlug, $language, !$isEqual);
return $this;
}
/**
* Set description - Description
* @param string|null $description
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setDescription (?string $description, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("description", $description, $language, !$isEqual);
return $this;
}
/**
* Get isProperty - Là dự án bất động sản?
* @return bool|null
*/
public function getIsProperty(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isProperty");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isProperty;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isProperty - Là dự án bất động sản?
* @param bool|null $isProperty
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setIsProperty(?bool $isProperty)
{
$this->isProperty = $isProperty;
return $this;
}
/**
* Get isEcosystem - Là hệ sinh thái
* @return bool|null
*/
public function getIsEcosystem(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isEcosystem");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isEcosystem;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isEcosystem - Là hệ sinh thái
* @param bool|null $isEcosystem
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setIsEcosystem(?bool $isEcosystem)
{
$this->isEcosystem = $isEcosystem;
return $this;
}
/**
* Get isShowFilter - Hiển thị filter cho danh sách các dự án
* @return bool|null
*/
public function getIsShowFilter(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isShowFilter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isShowFilter;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isShowFilter - Hiển thị filter cho danh sách các dự án
* @param bool|null $isShowFilter
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setIsShowFilter(?bool $isShowFilter)
{
$this->isShowFilter = $isShowFilter;
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getColors(): ?\Pimcore\Model\DataObject\Fieldcollection
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("colors");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("colors")->preGetData($this);
return $data;
}
/**
* Set colors - Colors
* @param \Pimcore\Model\DataObject\Fieldcollection|null $colors
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setColors(?\Pimcore\Model\DataObject\Fieldcollection $colors)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("colors");
$this->colors = $fd->preSetData($this, $colors);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getHeroSlider(): ?\Pimcore\Model\DataObject\Fieldcollection
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("heroSlider");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("heroSlider")->preGetData($this);
return $data;
}
/**
* Set heroSlider - Hero Slider
* @param \Pimcore\Model\DataObject\Fieldcollection|null $heroSlider
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setHeroSlider(?\Pimcore\Model\DataObject\Fieldcollection $heroSlider)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("heroSlider");
$this->heroSlider = $fd->preSetData($this, $heroSlider);
return $this;
}
/**
* Get heroImage - Hero Image
* @return \Pimcore\Model\Asset\Image|null
*/
public function getHeroImage(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("heroImage");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->heroImage;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set heroImage - Hero Image
* @param \Pimcore\Model\Asset\Image|null $heroImage
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setHeroImage(?\Pimcore\Model\Asset\Image $heroImage)
{
$this->heroImage = $heroImage;
return $this;
}
/**
* Get background - Background Image
* @return \Pimcore\Model\Asset\Image|null
*/
public function getBackground(): ?\Pimcore\Model\Asset\Image
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("background");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->background;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set background - Background Image
* @param \Pimcore\Model\Asset\Image|null $background
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setBackground(?\Pimcore\Model\Asset\Image $background)
{
$this->background = $background;
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getBrands(): ?\Pimcore\Model\DataObject\Fieldcollection
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("brands");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("brands")->preGetData($this);
return $data;
}
/**
* Set brands - Brands
* @param \Pimcore\Model\DataObject\Fieldcollection|null $brands
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setBrands(?\Pimcore\Model\DataObject\Fieldcollection $brands)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("brands");
$this->brands = $fd->preSetData($this, $brands);
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getPartners(): ?\Pimcore\Model\DataObject\Fieldcollection
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("partners");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("partners")->preGetData($this);
return $data;
}
/**
* Set partners - Partners
* @param \Pimcore\Model\DataObject\Fieldcollection|null $partners
* @return \Pimcore\Model\DataObject\Projecttype
*/
public function setPartners(?\Pimcore\Model\DataObject\Fieldcollection $partners)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("partners");
$this->partners = $fd->preSetData($this, $partners);
return $this;
}
}