36        $this->js_init = 
false;
 
   37        $this->js_path = 
"./Modules/StudyProgramme/templates/js/";
 
   50        if (!$this->js_init) {
 
   51            $tpl->addJavaScript($this->
getJsPath() . 
'ilStudyProgramme.js');
 
   53            $templates[
'info'] = 
$tpl->getMessageHTML(
"[MESSAGE]");
 
   54            $templates[
'success'] = 
$tpl->getMessageHTML(
"[MESSAGE]", 
'success');
 
   55            $templates[
'failure'] = 
$tpl->getMessageHTML(
"[MESSAGE]", 
'failure');
 
   56            $templates[
'question'] = 
$tpl->getMessageHTML(
"[MESSAGE]", 
'question');
 
   60            $tpl->addOnLoadCode(
"$('#" . $this->content_container_id . 
"').study_programme_notifications(" . json_encode($this->js_config) . 
");");
 
   62            $this->js_init = 
true;
 
  129        return $this->js_config[
$key];
 
  140        $this->js_config[
$key] = $value;
 
An exception for terminatinating execution or to throw for unit testing.
Class ilAsyncNotifications Allows to display async notifications on a page.
setContentContainerId($content_container_id)
Sets the target container for the notification.
setJsPath($js_path)
Sets the path for the javascripts.
getContentContainerId()
Gets the target container for the notification.
getHTML()
Returns the component (returns the js tag)
getJsConfig($key)
Gets a setting of the jquery-plugin config.
initJs()
Setup the message templates and add the js onload code.
addJsConfig($key, $value)
Sets Jquery settings for the plugin.
getJsPath()
Return the path for the javascripts.
__construct($content_container_id=null)