|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilAsyncOutputHandler Handles the output for async-requests. More...
Collaboration diagram for ilAsyncOutputHandler:Public Member Functions | |
| __construct ($content=null, $heading=null, $windows_properties=array()) | |
| terminate ($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 ($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 ($normal_content, $async_content=null, $apply_to_tpl=true) |
| Handles async output. More... | |
Data Fields | |
| const | OUTPUT_MODAL = "output_modal" |
| const | OUTPUT_EMPTY = "output_empty" |
Protected Attributes | |
| $content | |
| $heading | |
| $window_properties | |
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 11 of file class.ilAsyncOutputHandler.php.
| ilAsyncOutputHandler::__construct | ( | $content = null, |
|
$heading = null, |
|||
$windows_properties = array() |
|||
| ) |
Definition at line 21 of file class.ilAsyncOutputHandler.php.
|
static |
Encode data as json for async output.
| array | $data |
Definition at line 69 of file class.ilAsyncOutputHandler.php.
References $data, $DIC, and $ilCtrl.
Referenced by ilObjStudyProgrammeGUI\afterSave(), ilObjStudyProgrammeGUI\cancel(), ilObjStudyProgrammeSettingsGUI\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 111 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 131 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 151 of file class.ilAsyncOutputHandler.php.
References $window_properties.
|
static |
Handles async output.
| $normal_content | ||
| null | $async_content | |
| bool | $apply_to_tpl |
Definition at line 87 of file class.ilAsyncOutputHandler.php.
References $content, $DIC, $ilCtrl, $tpl, and exit.
Referenced by ilObjStudyProgrammeGUI\afterSave(), ilObjStudyProgrammeGUI\cancel(), ilObjStudyProgrammeSettingsGUI\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 121 of file class.ilAsyncOutputHandler.php.
References $content.
| ilAsyncOutputHandler::setHeading | ( | $heading | ) |
Sets the heading of a modal-output.
| mixed | $heading |
Definition at line 141 of file class.ilAsyncOutputHandler.php.
References $heading.
| ilAsyncOutputHandler::setWindowProperties | ( | $window_properties | ) |
Set windows properties.
| mixed | $window_properties |
Definition at line 161 of file class.ilAsyncOutputHandler.php.
References $window_properties.
| ilAsyncOutputHandler::terminate | ( | $type = self::OUTPUT_MODAL | ) |
Output content in different ways self::OUTPUT_MODAL: Output as bootstrap modal self::OUTPUT_EMPTY: Only content without ILIAS-layout.
| string | $type |
Definition at line 36 of file class.ilAsyncOutputHandler.php.
References $tpl, exit, getContent(), and getHeading().
Here is the call graph for this function:
|
protected |
Definition at line 15 of file class.ilAsyncOutputHandler.php.
Referenced by __construct(), getContent(), handleAsyncOutput(), and setContent().
|
protected |
Definition at line 17 of file class.ilAsyncOutputHandler.php.
Referenced by __construct(), getHeading(), and setHeading().
|
protected |
Definition at line 19 of file class.ilAsyncOutputHandler.php.
Referenced by getWindowProperties(), and setWindowProperties().
| const ilAsyncOutputHandler::OUTPUT_EMPTY = "output_empty" |
Definition at line 13 of file class.ilAsyncOutputHandler.php.
| const ilAsyncOutputHandler::OUTPUT_MODAL = "output_modal" |
Definition at line 12 of file class.ilAsyncOutputHandler.php.