2require_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;
 
An exception for terminatinating execution or to throw for unit testing.
Class ilAsyncOutputHandler Handles the output for async-requests.
__construct($content=null, $heading=null, $windows_properties=array())
setContent($content)
Sets the content of the modal output.
terminate($type=self::OUTPUT_MODAL)
Output content in different ways self::OUTPUT_MODAL: Output as bootstrap modal self::OUTPUT_EMPTY: On...
setHeading($heading)
Sets the heading of a modal-output.
getWindowProperties()
Return all window properties.
getHeading()
Return the heading of a modal.
setWindowProperties($window_properties)
Set windows properties.
static handleAsyncOutput($normal_content, $async_content=null, $apply_to_tpl=true)
Handles async output.
getContent()
Returns the content of the modal output.
static encodeAsyncResponse(array $data=array())
Encode data as json for async output.
special template class to simplify handling of ITX/PEAR