protected function _initAction()
    {
        if (!Mage::getStoreConfigFlag('system/cron/enable')) {
            $this->_getSession()->addNotice($this->__('Scheduler is disabled in configuration (system/cron/enable). No schedules will be executed.'));
        } else {
            $this->checkHeartbeat();
        }

        // check configuration
        if (Mage::getStoreConfig('system/cron/schedule_generate_every') > Mage::getStoreConfig('system/cron/schedule_ahead_for')) {
            $this->_getSession()->addError($this->__('Configuration problem. "Generate Schedules Every" is higher than "Schedule Ahead for". Please check your <a href="%s">configuration settings</a>.', $this->getUrl('adminhtml/system_config/edit', array('section' => 'system')) . '#system_cron'));
        }

        // Check the cron is being run as the configured user and whether or not to show the message
        $this->_checkCronUser();

        return $this->loadLayout()
            ->_setActiveMenu('system')
            ->_addBreadcrumb($this->__('System'), $this->__('System'))
            ->_addBreadcrumb($this->__('Scheduler'), $this->__('Scheduler'))
            ->_title($this->__('System'))
            ->_title($this->__('Scheduler'));
    }
protected function _initAction()
    {
        if (!Mage::getStoreConfigFlag('system/cron/enable')) {
            $this->_getSession()->addNotice($this->__('Scheduler is disabled in configuration (system/cron/enable). No schedules will be executed.'));
        } else {
            $this->checkHeartbeat();
        }

        // check configuration
        if (Mage::getStoreConfig('system/cron/schedule_generate_every') > Mage::getStoreConfig('system/cron/schedule_ahead_for')) {
            $this->_getSession()->addError($this->__('Configuration problem. "Generate Schedules Every" is higher than "Schedule Ahead for". Please check your <a href="%s">configuration settings</a>.', $this->getUrl('adminhtml/system_config/edit', array('section' => 'system')) . '#system_cron'));
        }

        // Check the cron is being run as the configured user and whether or not to show the message
        $this->_checkCronUser();

        return $this->loadLayout()
            ->_setActiveMenu('system')
            ->_addBreadcrumb($this->__('System'), $this->__('System'))
            ->_addBreadcrumb($this->__('Scheduler'), $this->__('Scheduler'))
            ->_title($this->__('System'))
            ->_title($this->__('Scheduler'));
    }
protected function _initAction ( ) { if ( ! Mage :: getStoreConfigFlag ( 'system/cron/enable' ) ) { $ this -> _getSession ( ) -> addNotice ( $ this -> __ ( 'Scheduler is disabled in configuration (system/cron/enable). No schedules will be executed.' ) ) ; } else { $ this -> checkHeartbeat ( ) ; } // check configuration if ( Mage :: getStoreConfig ( 'system/cron/schedule_generate_every' ) > Mage :: getStoreConfig ( 'system/cron/schedule_ahead_for' ) ) { $ this -> _getSession ( ) -> addError ( $ this -> __ ( 'Configuration problem. "Generate Schedules Every" is higher than "Schedule Ahead for". Please check your <a href="%s">configuration settings</a>.' , $ this -> getUrl ( 'adminhtml/system_config/edit' , array ( 'section' => 'system' ) ) . '#system_cron' ) ) ; } // Check the cron is being run as the configured user and whether or not to show the message $ this -> _checkCronUser ( ) ; return $ this -> loadLayout ( ) -> _setActiveMenu ( 'system' ) -> _addBreadcrumb ( $ this -> __ ( 'System' ) , $ this -> __ ( 'System' ) ) -> _addBreadcrumb ( $ this -> __ ( 'Scheduler' ) , $ this -> __ ( 'Scheduler' ) ) -> _title ( $ this -> __ ( 'System' ) ) -> _title ( $ this -> __ ( 'Scheduler' ) ) ; }
Preparing layout for output

@return Aoe_Scheduler_Controller_AbstractController
Preparing layout for output