ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\BackgroundTasks\Task\UserInteraction Interface Reference
+ Inheritance diagram for ILIAS\BackgroundTasks\Task\UserInteraction:
+ Collaboration diagram for ILIAS\BackgroundTasks\Task\UserInteraction:

Public Member Functions

 getOptions (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...
 
 getSkippedValue (array $input)
 
 interaction (array $input, Option $user_selected_option, Bucket $bucket)
 
 getMessage (array $input)
 
- Public Member Functions inherited from ILIAS\BackgroundTasks\Task
 getType ()
 
 getInputTypes ()
 
 getOutputType ()
 
 getOutput ()
 
 setInput (array $values)
 
 getInput ()
 
 unfoldTask ()
 
 getRemoveOption ()
 
 getAbortOption ()
 

Detailed Description

Definition at line 17 of file UserInteraction.php.

Member Function Documentation

◆ canBeSkipped()

ILIAS\BackgroundTasks\Task\UserInteraction::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.
Returns
bool
See also
getSkippedValue.

Implemented in ILIAS\BackgroundTasks\Implementation\Tasks\AbstractUserInteraction.

◆ getMessage()

ILIAS\BackgroundTasks\Task\UserInteraction::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)

Implemented in ILIAS\BackgroundTasks\Implementation\Tasks\AbstractUserInteraction.

◆ getOptions()

ILIAS\BackgroundTasks\Task\UserInteraction::getOptions ( array  $input)

◆ getSkippedValue()

ILIAS\BackgroundTasks\Task\UserInteraction::getSkippedValue ( array  $input)
Parameters
Value[]$input
Returns
Value
See also
canBeSkipped, whenever you decide to skip the UserInteraction, you have to return a valid Value to proceed.

Implemented in ILIAS\BackgroundTasks\Implementation\Tasks\AbstractUserInteraction.

◆ interaction()

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

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