Definition at line 30 of file Job.php.
Fossology\UI\Api\Models\Job::__construct |
( |
|
$id, |
|
|
|
$name = "" , |
|
|
|
$queueDate = "" , |
|
|
|
$uploadId = 0 , |
|
|
|
$userId = 0 , |
|
|
|
$groupId = 0 , |
|
|
|
$eta = 0 , |
|
|
|
$status = "" |
|
) |
| |
Job constructor.
- Parameters
-
integer | $id | |
string | $name | |
string | $queueDate | |
integer | $uploadId | |
integer | $userId | |
integer | $groupId | |
integer | $eta | |
string | $status | |
Definition at line 90 of file Job.php.
Fossology\UI\Api\Models\Job::getArray |
( |
| ) |
|
Get Job element as associative array
- Returns
- array
Definition at line 116 of file Job.php.
Fossology\UI\Api\Models\Job::getEta |
( |
| ) |
|
Get job ETA in seconds
- Returns
- number Job ETA in seconds
Definition at line 188 of file Job.php.
Fossology\UI\Api\Models\Job::getGroupId |
( |
| ) |
|
Get group id
- Returns
- number Group id
Definition at line 179 of file Job.php.
Fossology\UI\Api\Models\Job::getId |
( |
| ) |
|
Get the job ID
- Returns
- number Job id
Definition at line 134 of file Job.php.
Fossology\UI\Api\Models\Job::getJSON |
( |
| ) |
|
JSON representation of current job
- Returns
- string
Definition at line 107 of file Job.php.
Fossology\UI\Api\Models\Job::getName |
( |
| ) |
|
Get the job name
- Returns
- string Job name
Definition at line 143 of file Job.php.
Fossology\UI\Api\Models\Job::getQueueDate |
( |
| ) |
|
Get date with timezone when job was added
- Returns
- string Job date
Definition at line 152 of file Job.php.
Fossology\UI\Api\Models\Job::getStatus |
( |
| ) |
|
Get job status
- Returns
- string Job status
Definition at line 197 of file Job.php.
Fossology\UI\Api\Models\Job::getUploadId |
( |
| ) |
|
Fossology\UI\Api\Models\Job::getUserId |
( |
| ) |
|
Get user id
- Returns
- number User id
Definition at line 170 of file Job.php.
Fossology\UI\Api\Models\Job::setEta |
( |
|
$eta | ) |
|
Set the job ETA
- Parameters
-
Definition at line 251 of file Job.php.
Fossology\UI\Api\Models\Job::setGroupId |
( |
|
$groupId | ) |
|
Set the group id
- Parameters
-
number | $groupId | New group id |
Definition at line 242 of file Job.php.
Fossology\UI\Api\Models\Job::setName |
( |
|
$name | ) |
|
Set the job name
- Parameters
-
Definition at line 206 of file Job.php.
Fossology\UI\Api\Models\Job::setQueueDate |
( |
|
$queueDate | ) |
|
Set the job queue date
- Parameters
-
string | $queueDate | New queue date |
Definition at line 215 of file Job.php.
Fossology\UI\Api\Models\Job::setStatus |
( |
|
$status | ) |
|
Set the job status
- Parameters
-
Definition at line 260 of file Job.php.
Fossology\UI\Api\Models\Job::setUploadId |
( |
|
$uploadId | ) |
|
Set the job upload id
- Parameters
-
number | $uploadId | Job upload id |
Definition at line 224 of file Job.php.
Fossology\UI\Api\Models\Job::setUserId |
( |
|
$userId | ) |
|
Set the user id
- Parameters
-
Definition at line 233 of file Job.php.
integer Fossology\UI\Api\Models\Job::$eta |
|
private |
Estimated time of completion of job
Definition at line 66 of file Job.php.
integer Fossology\UI\Api\Models\Job::$groupId |
|
private |
Group id for current job
Definition at line 61 of file Job.php.
integer Fossology\UI\Api\Models\Job::$id |
|
private |
string Fossology\UI\Api\Models\Job::$name |
|
private |
string Fossology\UI\Api\Models\Job::$queueDate |
|
private |
string Fossology\UI\Api\Models\Job::$status |
|
private |
The status of the job. Can be one of following:
- Completed
- Failed
- Queued
- Processing
Definition at line 76 of file Job.php.
integer Fossology\UI\Api\Models\Job::$uploadId |
|
private |
integer Fossology\UI\Api\Models\Job::$userId |
|
private |
The documentation for this class was generated from the following file: