• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: __construct

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


示例17: __construct

 public function __construct()
 {
     $this->addColumn('descProduct', array('label' => Mage::helper('adminhtml')->__('Description Product'), 'size' => 28));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add new Field');
     parent::__construct();
     $this->setTemplate('db1/anymarket/system/config/form/field/array_dropdown.phtml');
 }
开发者ID:novapc,项目名称:magento,代码行数:8,代码来源:Values.php


示例18: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $this->addColumn('key', array('label' => Mage::helper('vbw_punchout')->__('Key'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('vbw_punchout')->__('Add Another Key');
     // run parent constructor
     parent::__construct();
 }
开发者ID:Eximagen,项目名称:pfizer,代码行数:11,代码来源:Stash.php


示例19: __construct

 public function __construct()
 {
     $this->addColumn('block_type', array('label' => $this->__('Block Type'), 'style' => 'width:200px'));
     $this->addColumn('rewriting_class_name', array('label' => $this->__('Rewriting Class'), 'style' => 'width:200px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = $this->__('Add Exception');
     parent::__construct();
 }
开发者ID:aram93,项目名称:mage-enhanced-admin-grids,代码行数:8,代码来源:Exceptions.php


示例20: __construct

 public function __construct()
 {
     $this->addColumn('attribute', array('label' => Mage::helper('adminhtml')->__('Attribute'), 'renderer' => $this->getRenderer('attribute')));
     $this->addColumn('order', array('label' => Mage::helper('adminhtml')->__('Ordered'), 'renderer' => $this->getRenderer('order')));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add Ranking Criterion');
     parent::__construct();
 }
开发者ID:IvanRybakov,项目名称:algoliasearch-magento,代码行数:8,代码来源:Customrankingproduct.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Mage_Adminhtml_Block_Template类代码示例发布时间:2022-05-23
下一篇:
PHP Mage_Adminhtml_Block_System_Config_Form_Field类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap