ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMailDeliveryJobUserInteraction.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 
14 {
15  const OPTION_CANCEL = 'cancel';
16 
20  public function getOptions(array $input) : array
21  {
22  return [];
23  }
24 
28  public function getRemoveOption()
29  {
30  return new UserInteractionOption('remove', self::OPTION_CANCEL);
31  }
32 
36  public function getInputTypes()
37  {
38  return [];
39  }
40 
44  public function getOutputType()
45  {
46  return new SingleType(StringValue::class);
47  }
48 
52  public function interaction(array $input, \ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, \ILIAS\BackgroundTasks\Bucket $bucket)
53  {
54  return $input;
55  }
56 
60  public function getMessage(array $input)
61  {
62  return '';
63  }
64 
68  public function canBeSkipped(array $input) : bool
69  {
70  return true;
71  }
72 }
getRemoveOption()
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed...
Class ilMailDeliveryJobUserInteraction.
Class ChatMainBarProvider .
getOptions(array $input)
$input The input value of this task.Option[] Options are buttons the user can press on this interacti...
getInputTypes()
Type[] A list of types that are taken as input.
interaction(array $input, \ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, \ILIAS\BackgroundTasks\Bucket $bucket)