public function updateAction()
 {
     $view = new Kwf_View_Json();
     Kwf_Controller_Action_Maintenance_UpdateController::executeUpdates($this->getRequest(), $view);
     echo json_encode($view->getOutput());
     exit;
 }
 public function jsonExecuteUpdatesAction()
 {
     if (Kwf_Config::getValue('server.phpCli')) {
         $cmd = Kwf_Config::getValue('server.phpCli') . " bootstrap.php maintenance update ";
         $cmd .= " --progressNum=" . escapeshellarg($this->_getParam('progressNum'));
         $procData = Kwf_Util_BackgroundProcess::start($cmd, $this->view);
         $this->view->assign($procData);
     } else {
         Kwf_Controller_Action_Maintenance_UpdateController::executeUpdates($this->getRequest(), $this->view);
     }
 }