示例#1
0
文件: EYiiron.php 项目: br0sk/yiiron
 /**
  * Alias for setProgress()
  *
  * @param string $task_id Task ID
  * @param int $percent
  * @param string $msg
  * @return mixed
  * @throws CException
  */
 public function workerSetTaskProgress($task_id, $percent, $msg = '')
 {
     try {
         return $this->_worker->setTaskProgress($task_id, $percent, $msg);
     } catch (Exception $e) {
         Yii::log('Error in IronWorker: ' . $e->getMessage(), 'error', 'ext.yiiron');
         throw new CException($e->getMessage());
     }
 }