ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
class.ilMailDeliveryJobUserInteraction.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
canBeSkipped(array $input)
Decide whether the UserInteraction is presented to the user and he has to decide or user UserInteract...
Interface Observer Contains several chained tasks and infos about them.
interaction(array $input, ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, ILIAS\BackgroundTasks\Bucket $bucket)