ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilAsyncOutputHandler Handles the output for async-requests. More...
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() |
|||
) |
Encode data as json for async output.
array | $data |
Definition at line 70 of file class.ilAsyncOutputHandler.php.
References $data, $DIC, and $ilCtrl.
Referenced by ilObjStudyProgrammeGUI\afterSave(), ilObjStudyProgrammeSettingsGUI\cancel(), ilObjStudyProgrammeTreeGUI\cancel(), ilObjStudyProgrammeGUI\cancel(), ilObjStudyProgrammeTreeGUI\cancelDelete(), ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilObjStudyProgrammeTreeGUI\createNewLeaf(), ilObjStudyProgrammeGUI\save(), ilObjStudyProgrammeTreeGUI\saveTreeOrder(), and ilObjStudyProgrammeSettingsGUI\update().
ilAsyncOutputHandler::getContent | ( | ) |
Returns the content of the modal output.
Definition at line 114 of file class.ilAsyncOutputHandler.php.
References $content.
Referenced by terminate().
ilAsyncOutputHandler::getHeading | ( | ) |
Return the heading of a modal.
Definition at line 136 of file class.ilAsyncOutputHandler.php.
References $heading.
Referenced by terminate().
ilAsyncOutputHandler::getWindowProperties | ( | ) |
Return all window properties.
Definition at line 158 of file class.ilAsyncOutputHandler.php.
References $window_properties.
|
static |
Handles async output.
$normal_content | ||
null | $async_content | |
bool | $apply_to_tpl |
Definition at line 89 of file class.ilAsyncOutputHandler.php.
References $content, $DIC, $ilCtrl, $tpl, and exit.
Referenced by ilObjStudyProgrammeGUI\afterSave(), ilObjStudyProgrammeSettingsGUI\cancel(), ilObjStudyProgrammeGUI\cancel(), ilObjStudyProgrammeTreeGUI\executeCommand(), and ilObjStudyProgrammeSettingsGUI\update().
ilAsyncOutputHandler::setContent | ( | $content | ) |
Sets the content of the modal output.
mixed | $content |
Definition at line 125 of file class.ilAsyncOutputHandler.php.
References $content.
ilAsyncOutputHandler::setHeading | ( | $heading | ) |
Sets the heading of a modal-output.
mixed | $heading |
Definition at line 147 of file class.ilAsyncOutputHandler.php.
References $heading.
ilAsyncOutputHandler::setWindowProperties | ( | $window_properties | ) |
Set windows properties.
mixed | $window_properties |
Definition at line 169 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 38 of file class.ilAsyncOutputHandler.php.
References $tpl, $type, exit, getContent(), and getHeading().
|
protected |
Definition at line 16 of file class.ilAsyncOutputHandler.php.
Referenced by __construct(), getContent(), handleAsyncOutput(), and setContent().
|
protected |
Definition at line 18 of file class.ilAsyncOutputHandler.php.
Referenced by __construct(), getHeading(), and setHeading().
|
protected |
Definition at line 20 of file class.ilAsyncOutputHandler.php.
Referenced by getWindowProperties(), and setWindowProperties().
const ilAsyncOutputHandler::OUTPUT_EMPTY = "output_empty" |
Definition at line 14 of file class.ilAsyncOutputHandler.php.
const ilAsyncOutputHandler::OUTPUT_MODAL = "output_modal" |
Definition at line 13 of file class.ilAsyncOutputHandler.php.