Exemplo n.º 1
0
 /**
  * 處理狀態
  * @param {Int} $bitstream_id
  */
 public function status($bitstream_id)
 {
     $bitstream = new Bitstream($bitstream_id);
     $status = "wait";
     if ($bitstream->is_deleted()) {
         $status = "deleted";
     } else {
         if ($bitstream->is_convert_completed()) {
             $converted_bitstream = $bitstream->get_converted_bitstream();
             $status = $converted_bitstream->get_id();
         }
     }
     $this->load->view("component/json", array("message" => $status));
 }