ILIAS  release_7 Revision v7.30-3-g800a261c036
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}
An exception for terminatinating execution or to throw for unit testing.
getOptions(array $input)
Option[] Options are buttons the user can press on this interaction.
interaction(array $input, \ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, \ILIAS\BackgroundTasks\Bucket $bucket)
getInputTypes()
Type[] A list of types that are taken as input.
getRemoveOption()
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed...
Class ChatMainBarProvider \MainMenu\Provider.