示例#1
0
 /**
  * Checks if $jobId is a job, and if not, error.
  */
 private static function checkJobExists(MongoId $jobId)
 {
     if (!JobModel::exists($jobId)) {
         self::error("nonexistent job");
         self::render('notice');
         return false;
     }
     return true;
 }
 private static function jobExists(MongoId $id)
 {
     return JobModel::exists($id);
 }