ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob Class Reference
+ Inheritance diagram for ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob:
+ Collaboration diagram for ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob:

Public Member Functions

 getInputTypes ()
 
 getOutputType ()
 
 isStateless ()
 
 getExpectedTimeOfTaskInSeconds ()
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
 getInput ()
 
Returns
array returns the input array
More...
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
 setInput (array $values)
 
 getOutput ()
 
 getInput ()
 
 getType ()
 
 unfoldTask ()
 Unfold the task. More...
 
 getRemoveOption ()
 
Returns
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed if the Bucket is completed. You do not have to provide an additional Option to remove in your UserInteraction, the remove-Option is added to the list of Options (last position)
See also
self::getAbortOption();
More...
 
 getAbortOption ()
 
Returns
Option In case a Job is failed or did not respond for some time, an Abort-Option is displayed. There is already a Standard-Abort-Option registered, you can override with your own and do some cleanup if possible.
More...
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Task\Job
 run (array $input, Observer $observer)
 

Additional Inherited Members

- Data Fields inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
const MAIN_REMOVE = 'bt_main_remove'
 
const MAIN_ABORT = 'bt_main_abort'
 
- Protected Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
 checkTypes (array $values)
 
 extractType ($value)
 
- Protected Attributes inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
array $input = []
 
Value $output
 

Detailed Description

Definition at line 27 of file PlusJob.php.

Member Function Documentation

◆ getExpectedTimeOfTaskInSeconds()

ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob::getExpectedTimeOfTaskInSeconds ( )

Implements ILIAS\BackgroundTasks\Task\Job.

Definition at line 74 of file PlusJob.php.

74  : int
75  {
76  return 1;
77  }

◆ getInputTypes()

ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob::getInputTypes ( )
Returns
Type[] Classof the Values

Implements ILIAS\BackgroundTasks\Task.

Definition at line 32 of file PlusJob.php.

32  : array
33  {
34  return [
35  new SingleType(IntegerValue::class),
36  new SingleType(IntegerValue::class),
37  ];
38  }

◆ getOutputType()

ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob::getOutputType ( )

◆ isStateless()

ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob::isStateless ( )
Returns
bool returns true iff the job's output ONLY depends on the input. Stateless task results may be cached!

Implements ILIAS\BackgroundTasks\Task\Job.

Definition at line 66 of file PlusJob.php.

66  : bool
67  {
68  return true;
69  }

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