public function sessionProgressAction()
 {
     $id = $this->params()->fromQuery('id', null);
     $progress = new ProgressBar\Upload\SessionProgress();
     $view = new JsonModel(array('id' => $id, 'status' => $progress->getProgress($id)));
     return $view;
 }
 public function uploadProgressAction()
 {
     $id = $this->params()->fromQuery('id', null);
     $progress = new SessionProgress();
     return new JsonModel($progress->getProgress($id));
 }
示例#3
0
 /**
  * Progress Action.
  *
  * @param string $id
  */
 public static function progressAction($id)
 {
     $progress = new Sp();
     return $progress->getProgress($id);
 }
示例#4
0
 /**
  * 進捗状況表示(attachプラグインのpcmd=progressで出力)
  * @return void
  */
 public static function getUploadProgress()
 {
     $headers = Header::getHeaders('application/json');
     $progress = new SessionProgress();
     Header::writeResponse($headers, 200, Json::encode($progress->getProgress(PKWK_WIKI_NAMESPACE)));
     exit;
 }