Work with Job Methods
Work with Job methods allows you to work with information related to a user job.
JobList
JobList ($User, $Jobstatus) - returns all user jobs information.
Arguments |
Value |
Description |
$User |
|
User name |
$Jobstatus |
*ACTIVE - default |
Job status |
Sample Code
|
$JobListArray = $Jobs->createJobListArray($Jobs->JobList("*CURRENT ", "*ACTIVE ")} |
|
createJobListArray
createJobListArray($JobListString) - Creates an array for all the user’s jobs information.
Arguments |
Value |
Description |
$JobListString |
|
Return string from JOBLIST() method |
Sample Code
|
$JobListArray = $Jobs->createJobListArray($Jobs->JobList("*CURRENT ", "*ACTIVE ")); |
|
JobLog
JobLog($JobName, $JobUser, $JobNumber, $Direction = 'L') - Returns the job’s log messages.
Arguments |
Value |
Description |
$JobName |
|
Job name; ‘*’ - Returns current job log messages |
$JobUser |
|
Job user |
$JobNumber |
|
Job number |
$Direction |
L - default |
The log messages order. The ‘L’ indicates descending order (from the last message to the first) |
Sample Code
|
o $JobLogMsgs = $Jobs->JobLog('*', ' ', ' ', ' '); |
|
A PHP Script That Shows The Usage of Work with Job Methods
|
<?php |
|