|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI:
Collaboration diagram for ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI:Public Member Functions | |
| executeCommand () | |
| getUnsafeGetCommands () | |
| This method must return a list of unsafe GET commands. More... | |
| getSafePostCommands () | |
| This method must return a list of safe POST commands. More... | |
| getUnsafeGetCommands () | |
| This method must return a list of unsafe GET commands. More... | |
| getSafePostCommands () | |
| This method must return a list of safe POST commands. More... | |
Static Public Member Functions | |
| static | hash (string $url) |
| static | unhash (string $url) |
Data Fields | |
| const | FROM_URL = 'from_url' |
| const | OBSERVER_ID = 'observer_id' |
| const | SELECTED_OPTION = 'selected_option' |
| const | CMD_ABORT = 'abortBucket' |
| const | CMD_REMOVE = 'abortBucket' |
| const | CMD_USER_INTERACTION = 'userInteraction' |
| const | IS_ASYNC = 'bt_task_is_async' |
| const | CMD_GET_REPLACEMENT_ITEM = "getAsyncReplacementItem" |
Protected Member Functions | |
| userInteraction () | |
| abortBucket () | |
| getAsyncReplacementItem () | |
| Loads one single aggregate notification item representing a button async to replace an existing one. More... | |
Private Member Functions | |
| getFromURL () | |
| enforceBucketBelongsToCurrentUser (Bucket $bucket) | |
| defaultReturnUrl () | |
| sendSuccessResponse (Stream $stream) | |
| redirectToCallerOrClose () | |
| respondWithError (int $error_status_code, string $message) | |
| retrieveSelectedInteractionOption () | |
| wasInvokedAsynchronously () | |
| retrieveObserverIdFromRequest () | |
| retrieveFromUrlFromRequest () | |
Definition at line 38 of file ControllerGUI.php.
|
protected |
Definition at line 104 of file ControllerGUI.php.
References ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\enforceBucketBelongsToCurrentUser(), ILIAS\HTTP\StatusCode\HTTP_BAD_REQUEST, ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\redirectToCallerOrClose(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\respondWithError(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\retrieveObserverIdFromRequest().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 202 of file ControllerGUI.php.
References ilUtil\_getHttpPath().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getFromURL(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\respondWithError().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 195 of file ControllerGUI.php.
References ILIAS\BackgroundTasks\Bucket\getUserId(), ILIAS\HTTP\StatusCode\HTTP_FORBIDDEN, and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\respondWithError().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\abortBucket(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getAsyncReplacementItem(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\userInteraction().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::executeCommand | ( | ) |
Definition at line 50 of file ControllerGUI.php.
References ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\abortBucket(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\CMD_ABORT, ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\CMD_GET_REPLACEMENT_ITEM, ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\CMD_REMOVE, ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\CMD_USER_INTERACTION, ILIAS\Repository\ctrl(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getAsyncReplacementItem(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\userInteraction().
Here is the call graph for this function:
|
protected |
Loads one single aggregate notification item representing a button async to replace an existing one.
Definition at line 125 of file ControllerGUI.php.
References ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\enforceBucketBelongsToCurrentUser(), ILIAS\HTTP\StatusCode\HTTP_BAD_REQUEST, ILIAS\Filesystem\Stream\Streams\ofString(), renderer(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\respondWithError(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\retrieveObserverIdFromRequest(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\sendSuccessResponse(), and ILIAS\Repository\ui().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 148 of file ControllerGUI.php.
References ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\defaultReturnUrl(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\retrieveFromUrlFromRequest(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\unhash(), ILIAS\Data\URI\withFragment(), ILIAS\Data\URI\withPath(), and ILIAS\Data\URI\withQuery().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\redirectToCallerOrClose().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::getSafePostCommands | ( | ) |
This method must return a list of safe POST commands.
Safe post commands returned by this method will no longer be CSRF protected and will NOT be appended by an ilCtrlToken.
Implements ilCtrlSecurityInterface.
Definition at line 78 of file ControllerGUI.php.
| ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::getUnsafeGetCommands | ( | ) |
This method must return a list of unsafe GET commands.
Unsafe get commands returned by this method will now be CSRF protected, which means an ilCtrlToken is appended each time a link-target is generated to the class implementing this interface with a command from that list.
Tokens will be validated in
Implements ilCtrlSecurityInterface.
Definition at line 69 of file ControllerGUI.php.
|
static |
Definition at line 185 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\addFromUrlToNextRequest().
Here is the caller graph for this function:
|
private |
Definition at line 220 of file ControllerGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getFromURL(), ILIAS\FileDelivery\http(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\wasInvokedAsynchronously().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\abortBucket(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\userInteraction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 229 of file ControllerGUI.php.
References $message, $response, ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\defaultReturnUrl(), ILIAS\FileDelivery\http(), ILIAS\HTTP\StatusCode\HTTP_FORBIDDEN, ILIAS\HTTP\StatusCode\HTTP_FOUND, ILIAS\Repository\lng(), ILIAS\HTTP\Response\ResponseHeader\LOCATION, and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\wasInvokedAsynchronously().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\abortBucket(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\enforceBucketBelongsToCurrentUser(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getAsyncReplacementItem(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\userInteraction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 281 of file ControllerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getFromURL().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 270 of file ControllerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\abortBucket(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getAsyncReplacementItem(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\userInteraction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 248 of file ControllerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\userInteraction().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 207 of file ControllerGUI.php.
References $response, ILIAS\FileDelivery\http(), ILIAS\HTTP\StatusCode\HTTP_OK, and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\wasInvokedAsynchronously().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getAsyncReplacementItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 190 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\getFromURL().
Here is the caller graph for this function:
|
protected |
Definition at line 83 of file ControllerGUI.php.
References ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\enforceBucketBelongsToCurrentUser(), ILIAS\HTTP\StatusCode\HTTP_BAD_REQUEST, ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\redirectToCallerOrClose(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\respondWithError(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\retrieveObserverIdFromRequest(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\retrieveSelectedInteractionOption().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 259 of file ControllerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\redirectToCallerOrClose(), ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\respondWithError(), and ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\sendSuccessResponse().
Here is the call graph for this function:
Here is the caller graph for this function:| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::CMD_ABORT = 'abortBucket' |
Definition at line 44 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand(), and ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getCloseButtonAction().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::CMD_GET_REPLACEMENT_ITEM = "getAsyncReplacementItem" |
Definition at line 48 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand(), and ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getRefreshUrl().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::CMD_REMOVE = 'abortBucket' |
Definition at line 45 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand(), and ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getCloseButtonAction().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::CMD_USER_INTERACTION = 'userInteraction' |
Definition at line 46 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI\executeCommand(), and ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getCloseButtonAction().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::FROM_URL = 'from_url' |
Definition at line 41 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\addFromUrlToNextRequest().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::IS_ASYNC = 'bt_task_is_async' |
Definition at line 47 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getCloseButtonAction().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::OBSERVER_ID = 'observer_id' |
Definition at line 42 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getCloseButtonAction(), and ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getRefreshUrl().
| const ILIAS\BackgroundTasks\Implementation\UI\ControllerGUI::SELECTED_OPTION = 'selected_option' |
Definition at line 43 of file ControllerGUI.php.
Referenced by ILIAS\BackgroundTasks\Implementation\UI\PopOverGUI\getCloseButtonAction().