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


PHP Varien_Data_Form::setFormExcludedFieldList方法代碼示例

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


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

示例1: _prepareForm

 protected function _prepareForm()
 {
     $form = new Varien_Data_Form();
     $form->setFormExcludedFieldList('product_sku');
     $this->setForm($form);
     $fieldset = $form->addFieldset('directsearch_form', array('legend' => Mage::helper('rocketweb_search')->__('Direct Search Result information')));
     $fieldset->addField('search_phrase', 'text', array('label' => Mage::helper('rocketweb_search')->__('Search Phrase'), 'class' => 'required-entry', 'required' => true, 'name' => 'search_phrase'));
     $fieldset->addField('store_id', 'multiselect', array('name' => 'stores[]', 'label' => Mage::helper('rocketweb_search')->__('Store View'), 'title' => Mage::helper('rocketweb_search')->__('Store View'), 'required' => true, 'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true)));
     $fieldset->addField('query_status', 'select', array('label' => Mage::helper('rocketweb_search')->__('Status'), 'name' => 'query_status', 'values' => array(array('value' => 1, 'label' => Mage::helper('rocketweb_search')->__('Enabled')), array('value' => 2, 'label' => Mage::helper('rocketweb_search')->__('Disabled')))));
     if (Mage::getSingleton('adminhtml/session')->getDirectQueryData()) {
         $form->setValues(Mage::getSingleton('adminhtml/session')->getDirectQueryData());
         Mage::getSingleton('adminhtml/session')->setDirectQueryData(null);
     } elseif (Mage::registry('query_data')) {
         $form->setValues(Mage::registry('query_data')->getData());
     }
     return parent::_prepareForm();
 }
開發者ID:beejhuff,項目名稱:magento-kick-butt-search,代碼行數:17,代碼來源:Form.php


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