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


PHP Varien_Data_Form_Element_Text::getValue方法代碼示例

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


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

示例1: getDatabaseExists

 /**
  * @return bool
  */
 public function getDatabaseExists()
 {
     if (strpos($this->_currentElement->getHtmlId(), 'dbName2') !== false) {
         $value1 = Mage::registry('system_fastindexer_dbName1');
         if (strtolower($this->_currentElement->getValue()) === strtolower($value1)) {
             return false;
         }
     }
     $dbName = $this->_currentElement->getData('value');
     if (empty($dbName)) {
         return false;
     }
     $result = $this->_connection->fetchOne('SELECT SCHEMA_NAME FROM `INFORMATION_SCHEMA`.`SCHEMATA` WHERE SCHEMA_NAME=:db', ['db' => $dbName]);
     return $result !== false;
 }
開發者ID:ThomasNegeli,項目名稱:Magento-FastIndexer,代碼行數:18,代碼來源:Database.php

示例2: _disableFields

 /**
  * Disable fields depending on product type
  *
  * @return Mage_CatalogInventory_Block_Adminhtml_Form_Field_Stock
  */
 protected function _disableFields()
 {
     if (!$this->_isProductComposite() && null === $this->_qty->getValue()) {
         $this->setDisabled('disabled');
     }
     if ($this->_isProductComposite()) {
         $this->_qty->setDisabled('disabled');
     }
     return $this;
 }
開發者ID:nickimproove,項目名稱:magento2,代碼行數:15,代碼來源:Stock.php

示例3: _getChooserButton

 /**
  * @return Mage_Adminhtml_Block_Widget_Button
  */
 protected function _getChooserButton()
 {
     $config = $this->getConfig();
     /** @var Mage_Adminhtml_Block_Widget_Button $chooseButton */
     $chooseButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')->setClass('scalable add-image plugin')->setLabel($config['button']['open'])->setOnclick('MediabrowserUtility.openDialog(\'' . $this->getUrl('*/cms_wysiwyg_images/index', array('target_element_id' => $this->_dummyFieldInput->getHtmlId())) . '\')')->setStyle('display:inline;margin-top:7px');
     // Check if there is a value. If yes value then we want the chooser button to be disabled
     if ($this->_fieldInput->getValue()) {
         $chooseButton->setDisabled(true);
     }
     return $chooseButton;
 }
開發者ID:Rizsti,項目名稱:Extendix_AdminFormChooserButton,代碼行數:14,代碼來源:ImageChooser.php

示例4: _getElementHtml

 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     $helper = Mage::helper('netzarbeiter_groupscatalog2');
     if ($helper->getConfig('show_multiselect_field')) {
         $html = parent::_getElementHtml($element);
     } else {
         $label = new Varien_Data_Form_Element_Text();
         $label->setData($element->getData())->setType('text')->setExtType('textfield')->addClass('input-text')->setReadOnly(true)->setForm($element->getForm())->setId($element->getId());
         $value = explode(',', (string) $label->getValue());
         $groups = $helper->getGroupNamesAsString($value);
         $label->setValue($groups);
         $html = $label->getElementHtml();
     }
     return $html;
 }
開發者ID:gewaechshaus,項目名稱:groupscatalog2,代碼行數:15,代碼來源:Customergroup.php


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