FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\UI\Api\Models\Job Class Reference
Collaboration diagram for Fossology\UI\Api\Models\Job:
Collaboration graph

Public Member Functions

 __construct ($id, $name="", $queueDate="", $uploadId=0, $userId=0, $groupId=0, $eta=0, $status="")
 
 getJSON ()
 
 getArray ()
 
 getId ()
 
 getName ()
 
 getQueueDate ()
 
 getUploadId ()
 
 getUserId ()
 
 getGroupId ()
 
 getEta ()
 
 getStatus ()
 
 setName ($name)
 
 setQueueDate ($queueDate)
 
 setUploadId ($uploadId)
 
 setUserId ($userId)
 
 setGroupId ($groupId)
 
 setEta ($eta)
 
 setStatus ($status)
 

Private Attributes

 $id
 
 $name
 
 $queueDate
 
 $uploadId
 
 $userId
 
 $groupId
 
 $eta
 
 $status
 

Detailed Description

Definition at line 30 of file Job.php.

Constructor & Destructor Documentation

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.

Member Function Documentation

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 ( )

Get upload id

Returns
number Upload id

Definition at line 161 of file Job.php.

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
number$etaJob ETA

Definition at line 251 of file Job.php.

Fossology\UI\Api\Models\Job::setGroupId (   $groupId)

Set the group id

Parameters
number$groupIdNew group id

Definition at line 242 of file Job.php.

Fossology\UI\Api\Models\Job::setName (   $name)

Set the job name

Parameters
string$nameJob name

Definition at line 206 of file Job.php.

Fossology\UI\Api\Models\Job::setQueueDate (   $queueDate)

Set the job queue date

Parameters
string$queueDateNew queue date

Definition at line 215 of file Job.php.

Fossology\UI\Api\Models\Job::setStatus (   $status)

Set the job status

Parameters
string$statusJob status

Definition at line 260 of file Job.php.

Fossology\UI\Api\Models\Job::setUploadId (   $uploadId)

Set the job upload id

Parameters
number$uploadIdJob upload id

Definition at line 224 of file Job.php.

Fossology\UI\Api\Models\Job::setUserId (   $userId)

Set the user id

Parameters
number$userIdUser id

Definition at line 233 of file Job.php.

Member Data Documentation

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

Job id

Definition at line 36 of file Job.php.

string Fossology\UI\Api\Models\Job::$name
private

Job name

Definition at line 41 of file Job.php.

string Fossology\UI\Api\Models\Job::$queueDate
private

Job queue date

Definition at line 46 of file Job.php.

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

Upload id for current job

Definition at line 51 of file Job.php.

integer Fossology\UI\Api\Models\Job::$userId
private

User id for current job

Definition at line 56 of file Job.php.


The documentation for this class was generated from the following file: