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


PHP Mage_Adminhtml_Block_Widget_Form::_initFormValues方法代碼示例

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


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

示例1: _initFormValues

 protected function _initFormValues()
 {
     $data = $this->getFilterData()->getData();
     foreach ($data as $key => $value) {
         if (is_array($value) && isset($value[0])) {
             $data[$key] = explode(',', $value[0]);
         }
     }
     $this->getForm()->addValues($data);
     return parent::_initFormValues();
 }
開發者ID:vinayshuklasourcefuse,項目名稱:sareez,代碼行數:11,代碼來源:Filter.php

示例2: _initFormValues

 /**
  * Initialize form fileds values
  * Method will be called after prepareForm and can be used for field values initialization
  *
  * @return Mage_Adminhtml_Block_Widget_Form
  */
 protected function _initFormValues()
 {
     $data = $this->getFilterData()->getData();
     foreach ($data as $key => $value) {
         if (is_array($value) && isset($value[0])) {
             $data[$key] = explode(',', $value[0]);
         }
         if ($key == 'product_category' and !empty($value)) {
             $ctoptions = Mage::helper('productreports')->getProductCategories($value);
             $this->setFieldOption('product_sub_category', $ctoptions);
         }
     }
     $this->getForm()->addValues($data);
     return parent::_initFormValues();
 }
開發者ID:sagmahajan,項目名稱:aswan_release,代碼行數:21,代碼來源:Form.php

示例3: _initFormValues

 /**
  * Initialize form fileds values
  *
  * @return Mage_Eav_Block_Adminhtml_Attribute_Edit_Main_Abstract
  */
 protected function _initFormValues()
 {
     Mage::dispatchEvent('adminhtml_block_eav_attribute_edit_form_init', array('form' => $this->getForm()));
     $this->getForm()->addValues($this->getAttributeObject()->getData());
     return parent::_initFormValues();
 }
開發者ID:hyhoocchan,項目名稱:mage-local,代碼行數:11,代碼來源:Abstract.php

示例4: _initFormValues

 /**
  * Initialize form fileds values
  *
  * @return Mage_Widget_Block_Adminhtml_Widget_Instance_Edit_Tab_Main
  */
 protected function _initFormValues()
 {
     $this->getForm()->addValues($this->getWidgetInstance()->getData());
     return parent::_initFormValues();
 }
開發者ID:barneydesmond,項目名稱:propitious-octo-tribble,代碼行數:10,代碼來源:Main.php

示例5: _initFormValues

 /**
  * Initialize form fileds values
  * Method will be called after prepareForm and can be used for field values initialization
  *
  * @return Mage_Adminhtml_Block_Widget_Form
  */
 protected function _initFormValues()
 {
     $this->getForm()->addValues($this->getFilterData()->getData());
     return parent::_initFormValues();
 }
開發者ID:nitronaj,項目名稱:magentofa,代碼行數:11,代碼來源:Form.php

示例6: _initFormValues

 protected function _initFormValues()
 {
     $this->getForm()->setValues($this->getForm()->getModel()->getData());
     return parent::_initFormValues();
 }
開發者ID:axovel,項目名稱:easycarcare,代碼行數:5,代碼來源:Form.php


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