protected function executeAction($from = null, $to = null)
    {
        $context = $this->getRequest()->getParam('id', 'gems');
        $from    = $this->getRequest()->getParam('from', $from);
        $to      = $this->getRequest()->getParam('to', $to);

        $batch = $this->loader->getTaskRunnerBatch('upgrade' . $context);
        $batch->minimalStepDurationMs = 3000; // 3 seconds max before sending feedback

        if (!$batch->isLoaded()) {
            $this->_upgrades->setBatch($batch);
            $this->_upgrades->execute($context, $to, $from);
        }

        $title = sprintf($this->_('Upgrading %s'), $context);
        $this->_helper->BatchRunner($batch, $title, $this->accesslog);

        $this->html->br();
        $this->compatibilityReportAction();
    }
protected function executeAction($from = null, $to = null)
    {
        $context = $this->getRequest()->getParam('id', 'gems');
        $from    = $this->getRequest()->getParam('from', $from);
        $to      = $this->getRequest()->getParam('to', $to);

        $batch = $this->loader->getTaskRunnerBatch('upgrade' . $context);
        $batch->minimalStepDurationMs = 3000; // 3 seconds max before sending feedback

        if (!$batch->isLoaded()) {
            $this->_upgrades->setBatch($batch);
            $this->_upgrades->execute($context, $to, $from);
        }

        $title = sprintf($this->_('Upgrading %s'), $context);
        $this->_helper->BatchRunner($batch, $title, $this->accesslog);

        $this->html->br();
        $this->compatibilityReportAction();
    }
protected function executeAction ( $ from = null , $ to = null ) { $ context = $ this -> getRequest ( ) -> getParam ( 'id' , 'gems' ) ; $ from = $ this -> getRequest ( ) -> getParam ( 'from' , $ from ) ; $ to = $ this -> getRequest ( ) -> getParam ( 'to' , $ to ) ; $ batch = $ this -> loader -> getTaskRunnerBatch ( 'upgrade' . $ context ) ; $ batch -> minimalStepDurationMs = 3000 ; // 3 seconds max before sending feedback if ( ! $ batch -> isLoaded ( ) ) { $ this -> _upgrades -> setBatch ( $ batch ) ; $ this -> _upgrades -> execute ( $ context , $ to , $ from ) ; } $ title = sprintf ( $ this -> _ ( 'Upgrading %s' ) , $ context ) ; $ this -> _helper -> BatchRunner ( $ batch , $ title , $ this -> accesslog ) ; $ this -> html -> br ( ) ; $ this -> compatibilityReportAction ( ) ; }
Executes the upgrades for a certain context

optional: give from and to levels

usage: execute/context/<context>{/from/int/to/int}
Executes the upgrades for a certain context