2 require_once(
"./Services/UICore/classes/class.ilTemplate.php");
27 $this->window_properties = $windows_properties;
40 if (
$type == self::OUTPUT_MODAL) {
41 $tpl =
new ilTemplate(
'tpl.modal_content.html',
false,
false,
'Modules/StudyProgramme');
56 } elseif (
$type == self::OUTPUT_EMPTY) {
77 return json_encode(
$data);
89 public static function handleAsyncOutput($normal_content, $async_content = null, $apply_to_tpl =
true)
95 $content = (
$ilCtrl->isAsynch() && $async_content != null)? $async_content : $normal_content;
__construct($content=null, $heading=null, $windows_properties=array())
getWindowProperties()
Return all window properties.
Class ilAsyncOutputHandler Handles the output for async-requests.
getHeading()
Return the heading of a modal.
terminate($type=self::OUTPUT_MODAL)
Output content in different ways self::OUTPUT_MODAL: Output as bootstrap modal self::OUTPUT_EMPTY: On...
setWindowProperties($window_properties)
Set windows properties.
static encodeAsyncResponse(array $data=array())
Encode data as json for async output.
setContent($content)
Sets the content of the modal output.
getContent()
Returns the content of the modal output.
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
static handleAsyncOutput($normal_content, $async_content=null, $apply_to_tpl=true)
Handles async output.
setHeading($heading)
Sets the heading of a modal-output.