本文整理汇总了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();
}
示例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'];
}
}
示例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();
}
示例4: __construct
public function __construct()
{
if (!$this->getTemplate()) {
$this->setTemplate('aligent/customformelements/form/field/array.phtml');
}
parent::__construct();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例10: __construct
public function __construct()
{
$this->addColumn('action', array('label' => __('Action'), 'style' => 'width:100px'));
$this->_addAfter = false;
$this->_addButtonLabel = __('Add');
parent::__construct();
}
示例11: getArrayRows
public function getArrayRows()
{
$result = parent::getArrayRows();
foreach ($result as $key => $row) {
$this->prepareArrayRow($row);
}
return $result;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}