ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMailDeliveryJobUserInteraction Class Reference

Class ilMailDeliveryJobUserInteraction. More...

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

Public Member Functions

 getOptions (array $input)
 
Parameters
Value[]$input The input value of this task.
Returns
Option[] Options are buttons the user can press on this interaction.
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...
 
 getInputTypes ()
 
Returns
Type[] A list of types that are taken as input.
More...
 
 getOutputType ()
 
Returns
Type A single type.
More...
 
 interaction (array $input, \ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, \ILIAS\BackgroundTasks\Bucket $bucket)
 
 getMessage (array $input)
 
 canBeSkipped (array $input)
 
- 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

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 ($values)
 
 extractType ($value)
 
- Protected Attributes inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask
 $input = []
 
 $output
 

Detailed Description

Member Function Documentation

◆ canBeSkipped()

ilMailDeliveryJobUserInteraction::canBeSkipped ( array  $input)

Implements ILIAS\BackgroundTasks\Task\UserInteraction.

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

68  : bool
69  {
70  return true;
71  }

◆ getInputTypes()

ilMailDeliveryJobUserInteraction::getInputTypes ( )

Returns
Type[] A list of types that are taken as input.

Implements ILIAS\BackgroundTasks\Task.

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

37  {
38  return [];
39  }

◆ getMessage()

ilMailDeliveryJobUserInteraction::getMessage ( array  $input)

Implements ILIAS\BackgroundTasks\Task\UserInteraction.

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

61  {
62  return '';
63  }

◆ 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 20 of file class.ilMailDeliveryJobUserInteraction.php.

20  : array
21  {
22  return [];
23  }

◆ getOutputType()

ilMailDeliveryJobUserInteraction::getOutputType ( )

Returns
Type A single type.

Implements ILIAS\BackgroundTasks\Task.

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

45  {
46  return new SingleType(StringValue::class);
47  }

◆ 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 28 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

const ilMailDeliveryJobUserInteraction::OPTION_CANCEL = 'cancel'

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


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