當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Object::doGetInheritedValues方法代碼示例

本文整理匯總了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;
 }
開發者ID:yonetici,項目名稱:pimcore-coreshop-demo,代碼行數:12,代碼來源:CoreShopDimensionSize.php

示例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;
 }
開發者ID:yonetici,項目名稱:pimcore-coreshop-demo,代碼行數:12,代碼來源:CoreShopPaymentPayunity.php

示例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;
 }
開發者ID:ascertain,項目名稱:NGshop,代碼行數:12,代碼來源:PaymentProviderPayPal.php

示例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;
 }
開發者ID:ascertain,項目名稱:NGshop,代碼行數:16,代碼來源:ProductCategory.php

示例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;
 }
開發者ID:ascertain,項目名稱:NGshop,代碼行數:16,代碼來源:FilterDefinition.php


注:本文中的Pimcore\Model\Object::doGetInheritedValues方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。