31 function __construct(
DbManager $dbManager, Logger $logger)
34 $this->logger = $logger;
37 public function getAllJobStatus($uploadId, $userId, $groupId)
42 "SELECT jobqueue.jq_pk as jq_pk, 43 jobqueue.jq_end_bits as end_bits 46 ON jobqueue.jq_job_fk = job.job_pk 47 LEFT JOIN group_user_member gm 48 ON gm.user_fk = job_user_fk 49 WHERE job.job_upload_fk = $1 51 OR gm.group_fk = $3)");
53 $res = $this->
dbManager->execute($stmt, array($uploadId, $userId, $groupId));
54 while ($row = $this->
dbManager->fetchArray($res)) {
55 $result[$row[
'jq_pk']] = $row[
'end_bits'];
62 public function hasActionPermissionsOnJob($jobId, $userId, $groupId)
69 LEFT JOIN group_user_member gm 70 ON gm.user_fk = job_user_fk 73 OR gm.group_fk = $3)");
75 $res = $this->
dbManager->execute($stmt, array($jobId, $userId, $groupId));
76 while ($row = $this->
dbManager->fetchArray($res)) {
77 $result[$row[
'jq_pk']] = $row[
'end_bits'];
fo_dbManager * dbManager
fo_dbManager object