本文整理汇总了PHP中Pimcore\Model\Object::doGetInheritedValues方法的典型用法代码示例。如果您正苦于以下问题:PHP Object::doGetInheritedValues方法的具体用法?PHP Object::doGetInheritedValues怎么用?PHP Object::doGetInheritedValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pimcore\Model\Object
的用法示例。
在下文中一共展示了Object::doGetInheritedValues方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSize
/**
* Set size - Size
* @return string
*/
public function getSize()
{
$data = $this->size;
if (\Pimcore\Model\Object::doGetInheritedValues($this->getObject()) && $this->getDefinition()->getFieldDefinition("size")->isEmpty($data)) {
return $this->getValueFromParent("size");
}
return $data;
}
示例2: getIdentificationShortId
/**
* Set identificationShortId - IdentificationShortId
* @return string
*/
public function getIdentificationShortId()
{
$data = $this->identificationShortId;
if (\Pimcore\Model\Object::doGetInheritedValues($this->getObject()) && $this->getDefinition()->getFieldDefinition("identificationShortId")->isEmpty($data)) {
return $this->getValueFromParent("identificationShortId");
}
return $data;
}
示例3: getAuth_PayerID
/**
* Set auth_PayerID - PayerID
* @return string
*/
public function getAuth_PayerID()
{
$data = $this->auth_PayerID;
if (\Pimcore\Model\Object::doGetInheritedValues($this->getObject()) && $this->getDefinition()->getFieldDefinition("auth_PayerID")->isEmpty($data)) {
return $this->getValueFromParent("auth_PayerID");
}
return $data;
}
示例4: getFilterdefinition
/**
* Get filterdefinition - filterdefinition
* @return \Pimcore\Model\Document\Page | \Pimcore\Model\Document\Snippet | \Pimcore\Model\Document | \Pimcore\Model\Asset | \Pimcore\Model\Object\AbstractObject
*/
public function getFilterdefinition()
{
$preValue = $this->preGetValue("filterdefinition");
if ($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
$data = $this->getClass()->getFieldDefinition("filterdefinition")->preGetData($this);
if (\Pimcore\Model\Object::doGetInheritedValues() && $this->getClass()->getFieldDefinition("filterdefinition")->isEmpty($data)) {
return $this->getValueFromParent("filterdefinition");
}
return $data;
}
示例5: getSimilarityFieldsInheritance
/**
* Get similarityFieldsInheritance - inherit SimilarityFields
* @return string
*/
public function getSimilarityFieldsInheritance()
{
$preValue = $this->preGetValue("similarityFieldsInheritance");
if ($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
$data = $this->similarityFieldsInheritance;
if (\Pimcore\Model\Object::doGetInheritedValues() && $this->getClass()->getFieldDefinition("similarityFieldsInheritance")->isEmpty($data)) {
return $this->getValueFromParent("similarityFieldsInheritance");
}
return $data;
}