|
ILIAS
release_8 Revision v8.24
|
Class ilAsyncOutputHandler Handles the output for async-requests. More...
Collaboration diagram for ilAsyncOutputHandler:Public Member Functions | |
| __construct ($content=null, $heading=null, array $windows_properties=array()) | |
| terminate (string $type=self::OUTPUT_MODAL) | |
| Output content in different ways self::OUTPUT_MODAL: Output as bootstrap modal self::OUTPUT_EMPTY: Only content without ILIAS-layout. More... | |
| getContent () | |
| Returns the content of the modal output. More... | |
| setContent ($content) | |
| Sets the content of the modal output. More... | |
| getHeading () | |
| Return the heading of a modal. More... | |
| setHeading ($heading) | |
| Sets the heading of a modal-output. More... | |
| getWindowProperties () | |
| Return all window properties. More... | |
| setWindowProperties (array $window_properties) | |
| Set windows properties. More... | |
Static Public Member Functions | |
| static | encodeAsyncResponse (array $data=array()) |
| Encode data as json for async output. More... | |
| static | handleAsyncOutput (string $normal_content, string $async_content=null, bool $apply_to_tpl=true) |
| Handles async output. More... | |
Protected Attributes | |
| $content | |
| $heading | |
| array | $window_properties |
Private Attributes | |
| const | OUTPUT_MODAL = "output_modal" |
| const | OUTPUT_EMPTY = "output_empty" |
Class ilAsyncOutputHandler Handles the output for async-requests.
The class allows to generate the basic structure of a bootstrap-modal (for modal-content)
Definition at line 31 of file class.ilAsyncOutputHandler.php.
| ilAsyncOutputHandler::__construct | ( | $content = null, |
|
$heading = null, |
|||
| array | $windows_properties = array() |
||
| ) |
Definition at line 48 of file class.ilAsyncOutputHandler.php.
|
static |
Encode data as json for async output.
Definition at line 89 of file class.ilAsyncOutputHandler.php.
Referenced by ilObjStudyProgrammeGUI\afterSave(), ilObjStudyProgrammeGUI\cancel(), ilObjStudyProgrammeTreeGUI\cancel(), ilObjStudyProgrammeTreeGUI\cancelDelete(), ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilObjStudyProgrammeTreeGUI\createNewLeaf(), ilObjStudyProgrammeGUI\save(), ilObjStudyProgrammeTreeGUI\saveTreeOrder(), and ilObjStudyProgrammeSettingsGUI\update().
Here is the caller graph for this function:| ilAsyncOutputHandler::getContent | ( | ) |
Returns the content of the modal output.
Definition at line 137 of file class.ilAsyncOutputHandler.php.
References $content.
Referenced by terminate().
Here is the caller graph for this function:| ilAsyncOutputHandler::getHeading | ( | ) |
Return the heading of a modal.
Definition at line 157 of file class.ilAsyncOutputHandler.php.
References $heading.
Referenced by terminate().
Here is the caller graph for this function:| ilAsyncOutputHandler::getWindowProperties | ( | ) |
Return all window properties.
Definition at line 175 of file class.ilAsyncOutputHandler.php.
References $window_properties.
|
static |
Handles async output.
Definition at line 104 of file class.ilAsyncOutputHandler.php.
References $content, $DIC, $http, $tpl, and exit.
Referenced by ilObjStudyProgrammeGUI\afterSave(), ilObjStudyProgrammeGUI\cancel(), ilObjStudyProgrammeTreeGUI\executeCommand(), and ilObjStudyProgrammeSettingsGUI\update().
Here is the caller graph for this function:| ilAsyncOutputHandler::setContent | ( | $content | ) |
Sets the content of the modal output.
| mixed | $content |
Definition at line 147 of file class.ilAsyncOutputHandler.php.
References $content.
| ilAsyncOutputHandler::setHeading | ( | $heading | ) |
Sets the heading of a modal-output.
| mixed | $heading |
Definition at line 167 of file class.ilAsyncOutputHandler.php.
References $heading.
| ilAsyncOutputHandler::setWindowProperties | ( | array | $window_properties | ) |
Set windows properties.
Definition at line 183 of file class.ilAsyncOutputHandler.php.
References $window_properties.
| ilAsyncOutputHandler::terminate | ( | string | $type = self::OUTPUT_MODAL | ) |
Output content in different ways self::OUTPUT_MODAL: Output as bootstrap modal self::OUTPUT_EMPTY: Only content without ILIAS-layout.
Definition at line 60 of file class.ilAsyncOutputHandler.php.
References $tpl, $type, exit, getContent(), and getHeading().
Here is the call graph for this function:
|
protected |
Definition at line 39 of file class.ilAsyncOutputHandler.php.
Referenced by __construct(), getContent(), handleAsyncOutput(), and setContent().
|
protected |
Definition at line 44 of file class.ilAsyncOutputHandler.php.
Referenced by __construct(), getHeading(), and setHeading().
|
protected |
Definition at line 46 of file class.ilAsyncOutputHandler.php.
Referenced by getWindowProperties(), and setWindowProperties().
|
private |
Definition at line 34 of file class.ilAsyncOutputHandler.php.
|
private |
Definition at line 33 of file class.ilAsyncOutputHandler.php.