ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMailDeliveryJobUserInteraction.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 
34 {
35  public const OPTION_CANCEL = 'cancel';
36 
37  public function getOptions(array $input): array
38  {
39  return [];
40  }
41 
42  public function getRemoveOption(): Option
43  {
44  return new UserInteractionOption('remove', self::OPTION_CANCEL);
45  }
46 
47  public function getInputTypes(): array
48  {
49  return [];
50  }
51 
52  public function getOutputType(): Type
53  {
54  return new SingleType(StringValue::class);
55  }
56 
57  public function interaction(
58  array $input,
59  ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option,
60  ILIAS\BackgroundTasks\Bucket $bucket
61  ): Value {
62  return $input[0];
63  }
64 
65  public function getMessage(array $input): string
66  {
67  return '';
68  }
69 
70  public function canBeSkipped(array $input): bool
71  {
72  return true;
73  }
74 }
canBeSkipped(array $input)
Decide whether the UserInteraction is presented to the user and he has to decide or user UserInteract...
Class ilMailDeliveryJobUserInteraction.
Class ChatMainBarProvider .
interaction(array $input, ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, ILIAS\BackgroundTasks\Bucket $bucket)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...