JOIN Client USING (ClientId)
LEFT JOIN Pool USING (PoolId)
LEFT JOIN FileSet USING (FilesetId)
+ LEFT JOIN Object USING (JobId)
' . $where['where'];
Database::execute($sql, $where['params']);
$fileset = $this->Request->contains('fileset') ? $this->Request['fileset'] : null;
$clientid = $this->Request->contains('clientid') ? $this->Request['clientid'] : null;
$client = $this->Request->contains('client') ? $this->Request['client'] : null;
+ $objecttype = $this->Request->contains('objecttype') && $misc->isValidName($this->Request['objecttype']) ? $this->Request['objecttype'] : null;
$schedtime_from = $this->Request->contains('schedtime_from') && $misc->isValidInteger($this->Request['schedtime_from']) ? (int)$this->Request['schedtime_from'] : null;
$schedtime_to = $this->Request->contains('schedtime_to') && $misc->isValidInteger($this->Request['schedtime_to']) ? (int)$this->Request['schedtime_to'] : null;
$starttime_from = $this->Request->contains('starttime_from') && $misc->isValidInteger($this->Request['starttime_from']) ? (int)$this->Request['starttime_from'] : null;
return;
}
+ $params = [];
+
+ if (is_string($objecttype)) {
+ $params['Object.ObjectType'] = [];
+ $params['Object.ObjectType'][] = [
+ 'vals' => $objecttype
+ ];
+ }
+
if (!empty($jobids)) {
/**
* If jobids parameter provided, all other parameters are not used.
return;
}
- $params = [];
-
if ($afterjobid > 0) {
$params['Job.JobId'] = [];
$params['Job.JobId'][] = [