コード例 #1
0
ファイル: Additional.php プロジェクト: guohuadeng/aototechweb
 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();
 }
コード例 #2
0
ファイル: Url.php プロジェクト: vinayshuklasourcefuse/sareez
 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();
 }
コード例 #3
0
ファイル: Fieldset.php プロジェクト: Rodrifer/candyclub
 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');
 }
コード例 #4
0
ファイル: Database.php プロジェクト: AleksNesh/pandora
 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();
 }
 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();
 }
コード例 #6
0
ファイル: Additional.php プロジェクト: guohuadeng/aototechweb
 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();
 }
コード例 #7
0
 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();
 }