Class ilMailDeliveryJob.
More...
|
| run (array $input, Observer $observer) |
| - Parameters
-
More...
|
|
| getInputTypes () |
| - Returns
- Type[] A list of types that are taken as input.
More...
|
|
| isStateless () |
| - Returns
- bool returns true iff the job's output ONLY depends on the input. Stateless task results may be cached!
More...
|
|
| getExpectedTimeOfTaskInSeconds () |
| - Returns
- int the amount of seconds this task usually taskes. If your task-duration scales with the the amount of data, try to set a possible high value of try to calculate it. If a task duration exceeds this value, it will be displayed as "possibly failed" to the user
More...
|
|
| getOutputType () |
| - Returns
- Type A single type.
More...
|
|
| getInput () |
| - Returns
- mixed returns the input array
More...
|
|
| 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...
|
|
◆ getExpectedTimeOfTaskInSeconds()
ilMailDeliveryJob::getExpectedTimeOfTaskInSeconds |
( |
| ) |
|
- Returns
- int the amount of seconds this task usually taskes. If your task-duration scales with the the amount of data, try to set a possible high value of try to calculate it. If a task duration exceeds this value, it will be displayed as "possibly failed" to the user
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 94 of file class.ilMailDeliveryJob.php.
◆ getInputTypes()
ilMailDeliveryJob::getInputTypes |
( |
| ) |
|
◆ getOutputType()
ilMailDeliveryJob::getOutputType |
( |
| ) |
|
◆ isStateless()
ilMailDeliveryJob::isStateless |
( |
| ) |
|
◆ run()
ilMailDeliveryJob::run |
( |
array |
$input, |
|
|
Observer |
$observer |
|
) |
| |
- Parameters
-
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 20 of file class.ilMailDeliveryJob.php.
References $DIC, ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input, ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$output, and ANONYMOUS_USER_ID.
24 $arguments = array_map(
function ($value) {
25 return $value->getValue();
28 $DIC->logger()->mail()->info(
'Mail delivery background task executed');
30 $DIC->logger()->mail()->debug(sprintf(
32 json_encode(array_slice($arguments, 0, 5), JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT)
40 $mail->setSaveInSentbox((
bool)
$input[8]->getValue());
42 ->withContextId((
string)
$input[9]->getValue())
43 ->withContextParameters((array) unserialize(
$input[10]->getValue()));
46 (
string)
$input[1]->getValue(),
47 (
string)
$input[2]->getValue(),
48 (
string)
$input[3]->getValue(),
49 (
string)
$input[4]->getValue(),
50 (
string)
$input[5]->getValue(),
51 (array) unserialize(
$input[6]->getValue()),
52 (
bool)
$input[7]->getValue()
55 $DIC->logger()->mail()->info(
'Mail delivery background task finished');
The documentation for this class was generated from the following file: