本文整理汇总了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();
}