_blockGroup = 'aoe_scheduler'; $this->_controller = 'adminhtml_scheduler'; $this->_headerText = Mage::helper('aoe_scheduler')->__('Scheduled tasks'); parent::__construct(); } /** * Prepare layout * * @return Aoe_Scheduler_Block_Adminhtml_Cron */ protected function _prepareLayout() { $this->removeButton('add'); $this->_addButton('add_new', array( 'label' => Mage::helper('aoe_scheduler')->__('Generate Schedule'), 'onclick' => "setLocation('{$this->getUrl('*/*/generateSchedule')}')", )); $this->_addButton('configure', array( 'label' => Mage::helper('aoe_scheduler')->__('Cron Configuration'), 'onclick' => "setLocation('{$this->getUrl('adminhtml/system_config/edit', array('section' => 'system'))}#system_cron')", )); return parent::_prepareLayout(); } /** * Returns the CSS class for the header * * Usually 'icon-head' and a more precise class is returned. We return * only an empty string to avoid spacing on the left of the header as we * don't have an icon. * * @return string */ public function getHeaderCssClass() { return ''; } }