ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMailDeliveryJobUserInteraction.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
28
30{
31 final public const string OPTION_CANCEL = 'cancel';
32
33 public function getOptions(array $input): array
34 {
35 return [];
36 }
37
38 public function getRemoveOption(): Option
39 {
40 return new UserInteractionOption('remove', self::OPTION_CANCEL);
41 }
42
43 public function getInputTypes(): array
44 {
45 return [];
46 }
47
48 public function getOutputType(): Type
49 {
50 return new SingleType(StringValue::class);
51 }
52
53 public function interaction(
54 array $input,
55 ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option,
56 ILIAS\BackgroundTasks\Bucket $bucket
57 ): Value {
58 return $input[0];
59 }
60
61 public function getMessage(array $input): string
62 {
63 return '';
64 }
65
66 public function canBeSkipped(array $input): bool
67 {
68 return true;
69 }
70}
interaction(array $input, ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, ILIAS\BackgroundTasks\Bucket $bucket)
getRemoveOption()
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.