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


PHP Varien_Data_Form_Element_Fieldset::__construct方法代碼示例

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


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

示例1: toHtml

 public function toHtml()
 {
     $model = $this->getModel();
     parent::__construct(array('legend' => __('Additional')));
     $this->addField('ignore', 'multiselect', array('name' => 'properties[ignore]', 'label' => __('Ingnored Pages'), 'required' => false, 'value' => $model->getProperty('ignore'), 'values' => Mage::getSingleton('adminhtml/system_config_source_cms_page')->toOptionArray(), 'note' => Mage::helper('searchindex/help')->field('ignore')));
     return parent::toHtml();
 }
開發者ID:guohuadeng,項目名稱:aototechweb,代碼行數:7,代碼來源:Additional.php

示例2: toHtml

 public function toHtml()
 {
     $model = $this->getModel();
     parent::__construct(array('legend' => __('URL Settings')));
     $this->addField('url_template', 'text', array('name' => 'properties[url_template]', 'label' => __('Url Template'), 'required' => true, 'value' => $model->getProperty('url_template'), 'note' => Mage::helper('searchindex/help')->field('url_template')));
     return parent::toHtml();
 }
開發者ID:vinayshuklasourcefuse,項目名稱:sareez,代碼行數:7,代碼來源:Url.php

示例3: __construct

 public function __construct($attributes = array())
 {
     parent::__construct($attributes);
     $this->addType('direct_row', 'Extendware_EWCore_Block_Varien_Data_Form_Element_Direct_Row');
     $this->addType('direct_value', 'Extendware_EWCore_Block_Varien_Data_Form_Element_Direct_Value');
     $this->addType('date_label', 'Extendware_EWCore_Block_Varien_Data_Form_Element_Date_Label');
 }
開發者ID:Rodrifer,項目名稱:candyclub,代碼行數:7,代碼來源:Fieldset.php

示例4: toHtml

 public function toHtml()
 {
     $model = $this->getModel();
     parent::__construct(array('legend' => __('Database Settings')));
     $this->addField('db_connection_name', 'text', array('name' => 'properties[db_connection_name]', 'label' => __('Database Connection Name'), 'required' => true, 'value' => $model->getProperty('db_connection_name') ? $model->getProperty('db_connection_name') : 'default_setup', 'note' => Mage::helper('searchindex/help')->field('db_connection_name')));
     $this->addField('db_table_prefix', 'text', array('name' => 'properties[db_table_prefix]', 'label' => __('Table Prefix'), 'required' => false, 'value' => $model->getProperty('db_table_prefix'), 'note' => Mage::helper('searchindex/help')->field('db_table_prefix')));
     return parent::toHtml();
 }
開發者ID:AleksNesh,項目名稱:pandora,代碼行數:8,代碼來源:Database.php

示例5: toHtml

 public function toHtml()
 {
     $model = $this->getModel();
     if (!Mage::app()->isSingleStoreMode()) {
         parent::__construct(array('legend' => Mage::helper('searchindex')->__('Store Settings')));
         $this->addField('store_id', 'multiselect', array('label' => Mage::helper('searchindex')->__('Store View'), 'required' => true, 'name' => 'properties[store_id]', 'value' => $model->getProperty('store_id'), 'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm()));
     }
     return parent::toHtml();
 }
開發者ID:vinayshuklasourcefuse,項目名稱:sareez,代碼行數:9,代碼來源:Mirasvit_SearchIndex_Block_Adminhtml_Index_Edit_Index_External_Store.php

示例6: toHtml

 public function toHtml()
 {
     $model = $this->getModel();
     parent::__construct(array('legend' => __('Additional Search Index Configuration')));
     $this->addField('include_category', 'select', array('name' => 'properties[include_category]', 'label' => __('Search by parent categories names'), 'required' => true, 'value' => $model->getProperty('include_category'), 'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(), 'note' => Mage::helper('searchindex/help')->field('include_category')));
     $this->addField('include_bundled', 'select', array('name' => 'properties[include_bundled]', 'label' => __('Search by child products attributes (for bundle and configurable products)'), 'required' => true, 'value' => $model->getProperty('include_bundled'), 'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(), 'note' => Mage::helper('searchindex/help')->field('include_bundled')));
     $this->addField('include_tag', 'select', array('name' => 'properties[include_tag]', 'label' => __('Search by product tags'), 'required' => true, 'value' => $model->getProperty('include_tag'), 'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(), 'note' => Mage::helper('searchindex/help')->field('include_tag')));
     $this->addField('include_id', 'select', array('name' => 'properties[include_id]', 'label' => __('Search by product id'), 'required' => true, 'value' => $model->getProperty('include_id'), 'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(), 'note' => Mage::helper('searchindex/help')->field('include_id')));
     $this->addField('out_of_stock_to_end', 'select', array('name' => 'properties[out_of_stock_to_end]', 'label' => __('Push "out of stock" products to the end'), 'required' => false, 'value' => $model->getProperty('out_of_stock_to_end'), 'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(), 'note' => Mage::helper('searchindex/help')->field('out_of_stock_to_end')));
     return parent::toHtml();
 }
開發者ID:guohuadeng,項目名稱:aototechweb,代碼行數:11,代碼來源:Additional.php

示例7: toHtml

 public function toHtml()
 {
     $model = $this->getModel();
     parent::__construct(array('legend' => __('Attribute')));
     $attributes = Mage::getSingleton('eav/config')->getEntityType(Mage_Catalog_Model_Product::ENTITY)->getAttributeCollection();
     $values = array();
     foreach ($attributes as $attr) {
         if (in_array($attr->getData('frontend_input'), array('select', 'multiselect'))) {
             $values[$attr->getAttributeCode()] = $attr->getFrontendLabel() . ' [' . $attr->getAttributeCode() . ']';
         }
     }
     $this->addField('attribute', 'select', array('name' => 'properties[attribute]', 'label' => __('Attribute'), 'required' => true, 'value' => $model->getProperty('attribute'), 'values' => $values));
     $this->addField('url_template', 'text', array('name' => 'properties[url_template]', 'label' => __('Url Template'), 'required' => true, 'value' => $model->getProperty('url_template')));
     return parent::toHtml();
 }
開發者ID:vishalpatel14,項目名稱:indiankalaniketan,代碼行數:15,代碼來源:Additional.php


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