当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract类代码示例

本文整理汇总了PHP中Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract类的具体用法?PHP Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract怎么用?PHP Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     $this->addColumn('slide', array('label' => Mage::helper('adminhtml')->__('Content of slide'), 'style' => 'width:450px; height:300px', 'type' => 'textarea'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add HTML Slide');
     Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract::__construct();
 }
开发者ID:omusico,项目名称:losvineros,代码行数:7,代码来源:Additem.php

示例2: addColumn

 /**
  * (non-PHPdoc)
  * @see Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract::addColumn()
  */
 public function addColumn($name, $params)
 {
     parent::addColumn($name, $params);
     if (isset($params['options']) && is_array($params['options'])) {
         $this->_columns[$name]['options'] = $params['options'];
     }
 }
开发者ID:Thinlt,项目名称:simicart,代码行数:11,代码来源:Conversions.php

示例3: __construct

 public function __construct()
 {
     $this->addColumn('pages', array('label' => Mage::helper('adminhtml')->__('Pages'), 'renderer' => $this->getRenderer('pages')));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add Excluded Page');
     parent::__construct();
 }
开发者ID:YouweGit,项目名称:algoliasearch-magento,代码行数:7,代码来源:Custompages.php

示例4: __construct

 public function __construct()
 {
     if (!$this->getTemplate()) {
         $this->setTemplate('aligent/customformelements/form/field/array.phtml');
     }
     parent::__construct();
 }
开发者ID:artmouse,项目名称:Magento-CustomFormElements,代码行数:7,代码来源:Generic.php

示例5: __construct

 public function __construct()
 {
     if (!isset($this->settings)) {
         throw new Exception('Please, specify columns settings.');
     }
     foreach ($this->settings['columns'] as $columnName => $columnSettings) {
         $fieldSettings = array();
         if (isset($columnSettings['label'])) {
             $fieldSettings['label'] = Mage::helper('adminhtml')->__($columnSettings['label']);
         }
         if (isset($columnSettings['options'])) {
             $fieldSettings['renderer'] = $this->getRenderer($columnName, $columnSettings);
         }
         if (isset($columnSettings['class'])) {
             $fieldSettings['class'] = $columnSettings['class'];
         }
         if (isset($columnSettings['style'])) {
             $fieldSettings['style'] = $columnSettings['style'];
         }
         $this->addColumn($columnName, $fieldSettings);
     }
     $this->_addAfter = $this->settings['addAfter'];
     $this->_addButtonLabel = Mage::helper('adminhtml')->__($this->settings['buttonLabel']);
     parent::__construct();
 }
开发者ID:algolia,项目名称:algoliasearch-magento,代码行数:25,代码来源:AbstractField.php

示例6: __construct

 public function __construct()
 {
     $this->addColumn('string', array('label' => Mage::helper('proxiblue_newrelic')->__('class::method'), 'style' => 'width:400px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('proxiblue_newrelic')->__('New Tracer');
     parent::__construct();
 }
开发者ID:c3limited,项目名称:NewRelic,代码行数:7,代码来源:Tracers.php

示例7: _renderCellTemplate

 protected function _renderCellTemplate($columnName)
 {
     $inputName = $this->getElement()->getName() . '[#{_id}][' . $columnName . ']';
     if ($columnName == "template") {
         $collection = Mage::getResourceModel('core/email_template_collection')->load();
         $arr_select = $collection->toOptionArray();
         array_unshift($arr_select, array('label' => Mage::helper('rewardpoints')->__('Default'), 'value' => ''));
         return $this->_getTemplateRenderer()->setName($inputName)->setTitle($columnName)->setExtraParams('style="width:260px"')->setOptions($arr_select)->toHtml();
     } else {
         if ($columnName == "sender") {
             $arr_select = array();
             $config = Mage::getSingleton('adminhtml/config')->getSection('trans_email')->groups->children();
             foreach ($config as $node) {
                 $nodeName = $node->getName();
                 $label = (string) $node->label;
                 $sortOrder = (int) $node->sort_order;
                 $arr_select[$sortOrder] = array('value' => preg_replace('#^ident_(.*)$#', '$1', $nodeName), 'label' => Mage::helper('adminhtml')->__($label));
             }
             ksort($arr_select);
             /*array_unshift(
                   $arr_select,
                   array(
                       'label' => Mage::helper('rewardpoints')->__('Default'),
                       'value' => ''
                   )
               );*/
             return $this->_getSenderRenderer()->setName($inputName)->setTitle($columnName)->setExtraParams('style="width:260px"')->setOptions($arr_select)->toHtml();
         }
     }
     return parent::_renderCellTemplate($columnName);
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:31,代码来源:Mapfields.php

示例8: __construct

 public function __construct()
 {
     $this->addColumn('value', array('label' => $this->__('Label'), 'style' => 'width:250px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = $this->__('Add label');
     parent::__construct();
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:7,代码来源:Feedbackfields.php

示例9: __construct

 public function __construct()
 {
     $this->addColumn('feature', array('label' => Mage::helper('ordermanager')->__('Invoice Label'), 'size' => 28));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('ordermanager')->__('Create Invoice Label');
     parent::__construct();
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:7,代码来源:Invoicestatus.php

示例10: __construct

 public function __construct()
 {
     $this->addColumn('action', array('label' => __('Action'), 'style' => 'width:100px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::__construct();
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:7,代码来源:CacheableActions.php

示例11: getArrayRows

 public function getArrayRows()
 {
     $result = parent::getArrayRows();
     foreach ($result as $key => $row) {
         $this->prepareArrayRow($row);
     }
     return $result;
 }
开发者ID:technomagegithub,项目名称:olgo.nl,代码行数:8,代码来源:NoindexPages.php

示例12: __construct

 public function __construct()
 {
     $this->addColumn('cache_group', array('label' => __('Cache Group'), 'style' => 'width:100px'));
     $this->addColumn('useragent_regexp', array('label' => __('User Agent RegExp'), 'style' => 'width:100px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::__construct();
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:8,代码来源:UserAgentSegmentation.php

示例13: __construct

 public function __construct()
 {
     $this->addColumn('url', array('label' => Mage::helper('mageparts_base')->__('URL'), 'style' => 'width:229px'));
     $this->addColumn('type', array('label' => Mage::helper('mageparts_base')->__('Type'), 'renderer' => $this->_getTypeRenderer()));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add URL');
     parent::__construct();
 }
开发者ID:finelinePG,项目名称:finelink-dev,代码行数:8,代码来源:Urltable.php

示例14: __construct

 public function __construct()
 {
     $this->addColumn('regexp', array('label' => Mage::helper('adminhtml')->__('Matched Expression'), 'style' => 'width:120px'));
     $this->addColumn('value', array('label' => Mage::helper('adminhtml')->__('Value'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add Exception');
     parent::__construct();
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:8,代码来源:Regexceptions.php

示例15: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $this->addColumn('pimgento_attribute', array('label' => Mage::helper('pimgento_product')->__('Pim Attribute'), 'style' => 'width:120px'));
     $this->addColumn('magento_attribute', array('label' => Mage::helper('pimgento_product')->__('Magento Attribute'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('pimgento_product')->__('Add');
     parent::__construct();
 }
开发者ID:techpub,项目名称:PIMGento,代码行数:11,代码来源:Match.php


注:本文中的Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。