IJob¶
-
interface
OCP\BackgroundJob\IJob¶ - Interface IJob
Implemented by: OCP\BackgroundJob\JobOC\BackgroundJob\JobSource: lib/public/BackgroundJob/IJob.php#37
Methods¶
-
public
OCP\BackgroundJob\IJob::execute($jobList, $logger=null)¶ - Run the background job with the registered argument
Source: Parameters: - $jobList (
OCP\BackgroundJob\IJobList) The job list that manages the state of this job - $logger (
OCP\ILogger| null)
Since: 7.0.0
- $jobList (
-
public
OCP\BackgroundJob\IJob::setId($id)¶ Source: lib/public/BackgroundJob/IJob.php#50 Since: 7.0.0
-
public
OCP\BackgroundJob\IJob::setLastRun($lastRun)¶ Source: lib/public/BackgroundJob/IJob.php#55 Since: 7.0.0
-
public
OCP\BackgroundJob\IJob::setArgument($argument)¶ Source: Parameters: - $argument (mixed)
Since: 7.0.0
-
public
OCP\BackgroundJob\IJob::getId()¶ - Get the id of the background jobThis id is determined by the job list when a job is added to the list
Source: lib/public/BackgroundJob/IJob.php#70 Returns: int Since: 7.0.0
-
public
OCP\BackgroundJob\IJob::getLastRun()¶ - Get the last time this job was run as unix timestamp
Source: lib/public/BackgroundJob/IJob.php#78 Returns: int Since: 7.0.0
-
public
OCP\BackgroundJob\IJob::getArgument()¶ - Get the argument associated with the background jobThis is the argument that will be passed to the background job
Source: lib/public/BackgroundJob/IJob.php#87 Returns: mixed Since: 7.0.0