public function jsonRebuildAction()
 {
     if (!Kwf_Config::getValue('server.phpCli')) {
         throw new Kwf_Exception_Client("Not (yet?) supported without phpCli");
     }
     $cmd = Kwf_Config::getValue('server.phpCli') . " bootstrap.php fulltext rebuild --silent";
     $procData = Kwf_Util_BackgroundProcess::start($cmd, $this->view);
     $this->view->assign($procData);
 }
 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 {
         self::executeUpdates($this->getRequest(), $this->view);
     }
 }