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


PHP Varien_Data_Form_Element_Abstract::unsScope方法代碼示例

本文整理匯總了PHP中Varien_Data_Form_Element_Abstract::unsScope方法的典型用法代碼示例。如果您正苦於以下問題:PHP Varien_Data_Form_Element_Abstract::unsScope方法的具體用法?PHP Varien_Data_Form_Element_Abstract::unsScope怎麽用?PHP Varien_Data_Form_Element_Abstract::unsScope使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Varien_Data_Form_Element_Abstract的用法示例。


在下文中一共展示了Varien_Data_Form_Element_Abstract::unsScope方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     if ($element->getScope() == "stores") {
         $this->setStoreId($element->getScopeId());
     }
     // Remove the scope information so it doesn't get printed out
     $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
     return parent::render($element);
 }
開發者ID:shebin512,項目名稱:Magento_Zoff,代碼行數:9,代碼來源:Button.php

示例2: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     // Only show the current scope hasn't been configured yet
     switch ($element->getScope()) {
         case "stores":
             if ($this->hasApiKeys($element->getScopeId())) {
                 return "";
             }
             break;
         case "websites":
             $website = Mage::app()->getWebsite($element->getScopeId());
             if ($this->hasApiKeys($website->getStores())) {
                 return "";
             }
             break;
         default:
             if ($this->hasApiKeys()) {
                 return "";
             }
     }
     // Remove the scope information so it doesn't get printed out
     $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
     return parent::render($element);
 }
開發者ID:mSupply,項目名稱:runnable_test_repo,代碼行數:24,代碼來源:Button.php

示例3: render

 /**
  * Remove scope label
  *
  * @param  Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
     return parent::render($element);
 }
開發者ID:nickimproove,項目名稱:magento2,代碼行數:11,代碼來源:Synchronize.php

示例4: render

 /**
  * Remove the "scope" value
  *
  * @param Varien_Data_Form_Element_Abstract $element
  *
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
     $element->setLabel($this->_getButtonHtml($element));
     return parent::render($element);
 }
開發者ID:bevello,項目名稱:bevello,代碼行數:13,代碼來源:Download.php

示例5: render

 /**
  * Unset scope label and pass further to parent render()
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     // Unset the scope label near the button
     $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
     return parent::render($element);
 }
開發者ID:AleksNesh,項目名稱:pandora,代碼行數:12,代碼來源:LinkButton.php


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