34 $this->js_init =
false;
35 $this->js_path =
"./Modules/StudyProgramme/templates/js/";
47 $tpl->addJavaScript($this->
getJsPath().
'ilStudyProgramme.js');
49 $templates[
'info'] = $tpl->getMessageHTML(
"[MESSAGE]");
50 $templates[
'success'] = $tpl->getMessageHTML(
"[MESSAGE]",
'success');
51 $templates[
'failure'] = $tpl->getMessageHTML(
"[MESSAGE]",
'failure');
52 $templates[
'question'] = $tpl->getMessageHTML(
"[MESSAGE]",
'question');
56 $tpl->addOnLoadCode(
"$('#".$this->content_container_id.
"').study_programme_notifications(".json_encode($this->js_config).
");");
58 $this->js_init =
true;
118 return $this->js_config[$key];
128 $this->js_config[$key] = $value;
addJsConfig($key, $value)
Sets Jquery settings for the plugin.
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.
getJsConfig($key)
Gets a setting of the jquery-plugin config.
getContentContainerId()
Gets the target container for the notification.
getJsPath()
Return the path for the javascripts.
__construct($content_container_id=null)
getHTML()
Returns the component (returns the js tag)
initJs()
Setup the message templates and add the js onload code.