Example #1
0
 public function _construct()
 {
     if ($this->hasData('grouped')) {
         $this->_isGrouped = (bool) $this->getData('grouped');
     }
     parent::_construct();
 }
Example #2
0
 /**
  * Class constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('Mage_Backend::widget/form.phtml');
     $this->setDestElementId('edit_form');
     $this->setShowGlobalIcon(false);
 }
Example #3
0
 protected function _construct()
 {
     $this->_systemConfig = $this->hasData('systemConfig') ? $this->getData('systemConfig') : Mage::getSingleton('Mage_Backend_Model_Config_Structure_Reader')->getConfiguration();
     parent::_construct();
     $sectionCode = $this->getRequest()->getParam('section');
     $this->_section = $this->_systemConfig->getSection($sectionCode);
     $this->setTitle($this->_section['label']);
     $this->setHeaderCss(isset($this->_section['header_css']) ? $this->_section['header_css'] : '');
 }
Example #4
0
 protected function _construct()
 {
     parent::_construct();
     $this->setErrorText($this->helper('Mage_Backend_Helper_Data')->jsQuoteEscape($this->helper('Mage_Backend_Helper_Data')->__('Please select items.')));
     if (null !== $this->getOptions()) {
         foreach ($this->getOptions() as $optionId => $option) {
             $this->addItem($optionId, $option);
         }
         $this->unsetData('options');
     }
 }
Example #5
0
 protected function _construct()
 {
     parent::_construct();
     if ($this->hasData('exportTypes')) {
         foreach ($this->getData('exportTypes') as $type) {
             if (!isset($type['urlPath']) || !isset($type['label'])) {
                 Mage::throwException('Invalid export type supplied for grid export block');
             }
             $this->addExportType($type['urlPath'], $type['label']);
         }
     }
 }
Example #6
0
 /**
  * Class constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setDestElementId('edit_form');
     $this->setShowGlobalIcon(false);
 }
Example #7
0
 /**
  * Sets Massaction template
  */
 public function _construct()
 {
     parent::_construct();
     $this->setErrorText(Mage::helper('Mage_Backend_Helper_Data')->jsQuoteEscape(Mage::helper('Mage_Backend_Helper_Data')->__('Please select items.')));
 }
Example #8
0
 /**
  * Define block template
  */
 protected function _construct()
 {
     $this->setTemplate('Mage_Backend::widget/button/split.phtml');
     parent::_construct();
 }
Example #9
0
 protected function _construct()
 {
     parent::_construct();
     $this->_systemConfig = $this->hasData('systemConfig') ? $this->getData('systemConfig') : Mage::getSingleton('Mage_Backend_Model_Config_Structure_Reader')->getConfiguration();
     $this->setId('system_config_tabs');
     $this->setTitle($this->helper('Mage_Backend_Helper_Data')->__('Configuration'));
 }
Example #10
0
 protected function _construct()
 {
     parent::_construct();
     if (!$this->getRowClickCallback()) {
         $this->setRowClickCallback('openGridRow');
     }
     if ($this->hasData('id')) {
         $this->setId($this->getData('id'));
     }
     if ($this->hasData('default_sort')) {
         $this->setDefaultSort($this->getData('default_sort'));
     }
     if ($this->hasData('default_dir')) {
         $this->setDefaultDir($this->getData('default_dir'));
     }
     if ($this->hasData('save_parameters_in_session')) {
         $this->setSaveParametersInSession($this->getData('save_parameters_in_session'));
     }
     $this->setPagerVisibility($this->hasData('pager_visibility') ? (bool) $this->getData('pager_visibility') : true);
     $this->setData('use_ajax', $this->hasData('use_ajax') ? (bool) $this->getData('use_ajax') : false);
     if ($this->hasData('rssList') && is_array($this->getData('rssList'))) {
         foreach ($this->getData('rssList') as $item) {
             $this->addRssList($item['url'], $item['label']);
         }
     }
 }