ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMailDeliveryJobUserInteraction Class Reference

Class ilMailDeliveryJobUserInteraction. More...

+ Inheritance diagram for ilMailDeliveryJobUserInteraction:
+ Collaboration diagram for ilMailDeliveryJobUserInteraction:

Public Member Functions

 getOptions (array $input)
 
 getRemoveOption ()
 
 getInputTypes ()
 
 getOutputType ()
 
 interaction (array $input, ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, ILIAS\BackgroundTasks\Bucket $bucket)
 
 getMessage (array $input)
 
 canBeSkipped (array $input)
 Decide whether the UserInteraction is presented to the user and he has to decide or user UserInteraction is skipped by the TaskManager. More...
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractUserInteraction
 getMessage (array $input)
 
 canBeSkipped (array $input)
 
 getSkippedValue (array $input)
 
 isFinal ()
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
 setInput (array $values)
 
 getOutput ()
 
 getInput ()
 
 getType ()
 
 unfoldTask ()
 Unfold the task. More...
 
 getRemoveOption ()
 
Returns
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed if the Bucket is completed. You do not have to provide an additional Option to remove in your UserInteraction, the remove-Option is added to the list of Options (last position)
See also
self::getAbortOption();
More...
 
 getAbortOption ()
 
Returns
Option In case a Job is failed or did not respond for some time, an Abort-Option is displayed. There is already a Standard-Abort-Option registered, you can override with your own and do some cleanup if possible.
More...
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Task\UserInteraction
 interaction (array $input, Option $user_selected_option, Bucket $bucket)
 

Data Fields

final const OPTION_CANCEL = 'cancel'
 
- Data Fields inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
const MAIN_REMOVE = 'bt_main_remove'
 
const MAIN_ABORT = 'bt_main_abort'
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
 checkTypes (array $values)
 
 extractType ($value)
 
- Protected Attributes inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
array $input = []
 
Value $output
 

Detailed Description

Member Function Documentation

◆ canBeSkipped()

ilMailDeliveryJobUserInteraction::canBeSkipped ( array  $input)

Decide whether the UserInteraction is presented to the user and he has to decide or user UserInteraction is skipped by the TaskManager.

You must return a valid Value then,

Parameters
Value[]$input The input value of this task.
See also
getSkippedValue.

Implements ILIAS\BackgroundTasks\Task\UserInteraction.

Definition at line 70 of file class.ilMailDeliveryJobUserInteraction.php.

70  : bool
71  {
72  return true;
73  }

◆ getInputTypes()

ilMailDeliveryJobUserInteraction::getInputTypes ( )
Returns
Type[] A list of types that are taken as input.

Implements ILIAS\BackgroundTasks\Task.

Definition at line 47 of file class.ilMailDeliveryJobUserInteraction.php.

47  : array
48  {
49  return [];
50  }

◆ getMessage()

ilMailDeliveryJobUserInteraction::getMessage ( array  $input)
Parameters
Value[]$input The input value of this task.
Returns
string $message enables the UserInteraction to be used as a notification (for example when a bucket fails due to an expected condition not being met)

Implements ILIAS\BackgroundTasks\Task\UserInteraction.

Definition at line 65 of file class.ilMailDeliveryJobUserInteraction.php.

65  : string
66  {
67  return '';
68  }

◆ getOptions()

ilMailDeliveryJobUserInteraction::getOptions ( array  $input)
Parameters
Value[]$input The input value of this task.
Returns
Option[] Options are buttons the user can press on this interaction.

Implements ILIAS\BackgroundTasks\Task\UserInteraction.

Definition at line 37 of file class.ilMailDeliveryJobUserInteraction.php.

37  : array
38  {
39  return [];
40  }

◆ getOutputType()

ilMailDeliveryJobUserInteraction::getOutputType ( )

Implements ILIAS\BackgroundTasks\Task.

Definition at line 52 of file class.ilMailDeliveryJobUserInteraction.php.

52  : Type
53  {
54  return new SingleType(StringValue::class);
55  }

◆ getRemoveOption()

ilMailDeliveryJobUserInteraction::getRemoveOption ( )
Returns
Option An Option to remove the current task and do some cleanup if possible. This Option is displayed if the Bucket is completed. You do not have to provide an additional Option to remove in your UserInteraction, the remove-Option is added to the list of Options (last position)
See also
self::getAbortOption();

Implements ILIAS\BackgroundTasks\Task.

Definition at line 42 of file class.ilMailDeliveryJobUserInteraction.php.

◆ interaction()

ilMailDeliveryJobUserInteraction::interaction ( array  $input,
ILIAS\BackgroundTasks\Task\UserInteraction\Option  $user_selected_option,
ILIAS\BackgroundTasks\Bucket  $bucket 
)

Field Documentation

◆ OPTION_CANCEL

final const ilMailDeliveryJobUserInteraction::OPTION_CANCEL = 'cancel'

Definition at line 35 of file class.ilMailDeliveryJobUserInteraction.php.


The documentation for this class was generated from the following file: