Ejemplo n.º 1
0
 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();
 }
 public function __construct()
 {
     if (!$this->getTemplate()) {
         $this->setTemplate('aligent/customformelements/form/field/array.phtml');
     }
     parent::__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();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public function __construct()
 {
     $this->addColumn('string', array('label' => Mage::helper('proxiblue_newrelic')->__('String'), 'style' => 'width:300px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('proxiblue_newrelic')->__('Add New Graph');
     parent::__construct();
 }
Ejemplo n.º 6
0
 public function __construct()
 {
     $this->addColumn('string', array('label' => Mage::helper('newrelic')->__('Module Name'), 'style' => 'width:200px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('newrelic')->__('Add New Ignore');
     parent::__construct();
 }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     $this->addColumn('value', array('label' => $this->__('Label'), 'style' => 'width:250px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = $this->__('Add label');
     parent::__construct();
 }
Ejemplo n.º 9
0
 public function __construct()
 {
     $this->addColumn('ip', array('label' => Mage::helper('adminhtml')->__('Payment server IP address'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add new IP address');
     parent::__construct();
 }
Ejemplo n.º 10
0
 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();
 }
Ejemplo n.º 11
0
 /**
  * (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'];
     }
 }
Ejemplo n.º 12
0
 public function __construct()
 {
     $this->addColumn('value', array('label' => Mage::helper('onestepcheckout')->__('Label'), 'style' => 'width:250px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('onestepcheckout')->__('Add label');
     parent::__construct();
 }
Ejemplo n.º 13
0
 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();
 }
Ejemplo n.º 14
0
 public function __construct()
 {
     $this->addColumn('word', array('label' => Mage::helper('adminhtml')->__('Word'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add');
     parent::__construct();
 }
 public function __construct()
 {
     $this->addColumn('action', array('label' => __('Action'), 'style' => 'width:100px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::__construct();
 }
Ejemplo n.º 16
0
 public function getArrayRows()
 {
     $result = parent::getArrayRows();
     foreach ($result as $key => $row) {
         $this->prepareArrayRow($row);
     }
     return $result;
 }
 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();
 }
Ejemplo n.º 18
0
 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();
 }
Ejemplo n.º 19
0
 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();
 }
Ejemplo n.º 20
0
 public function __construct()
 {
     $this->addColumn('sales', array('label' => Mage::helper('affiliateplus')->__('#Sales/#Orders'), 'style' => 'width:120px'));
     $this->addColumn('commission', array('label' => Mage::helper('affiliateplus')->__('Commission'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('affiliateplus')->__('Add Level');
     parent::__construct();
 }
Ejemplo n.º 21
0
 public function __construct()
 {
     $this->addColumn('find', array('label' => Mage::helper('adminhtml')->__('Find words'), 'style' => 'width:100px'));
     $this->addColumn('replace', array('label' => Mage::helper('adminhtml')->__('Replace by word'), 'style' => 'width:60px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add');
     parent::__construct();
 }
Ejemplo n.º 22
0
 public function __construct()
 {
     $this->addColumn('code', array('label' => Mage::helper('themesettings')->__('Code'), 'style' => 'width:120px'));
     $this->addColumn('name', array('label' => Mage::helper('themesettings')->__('Title'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('themesettings')->__('Add Attribute Code');
     parent::__construct();
 }
Ejemplo n.º 23
0
 public function __construct()
 {
     $this->addColumn('magento', array('label' => Mage::helper('monkey')->__('Customer'), 'style' => 'width:120px'));
     $this->addColumn('mailchimp', array('label' => Mage::helper('monkey')->__('MailChimp'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('monkey')->__('Add field');
     parent::__construct();
 }
Ejemplo n.º 24
0
 /**
  * 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();
 }
Ejemplo n.º 25
0
 /**
  * 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();
 }
Ejemplo n.º 26
0
 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');
 }
Ejemplo n.º 27
0
 public function __construct()
 {
     $this->addColumn('brand', array('label' => Mage::helper('ops')->__('Brand'), 'style' => 'width:120px'));
     $this->addColumn('value', array('label' => Mage::helper('ops')->__('Title'), 'style' => 'width:120px'));
     $this->_addAfter = false;
     $this->_addButtonLabel = Mage::helper('ops')->__('Add Brand');
     parent::__construct();
 }
Ejemplo n.º 28
0
 /**
  * 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();
 }
Ejemplo n.º 29
0
 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();
 }
 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();
 }