34 $this->js_init =
false;
35 $this->js_path =
"./Modules/StudyProgramme/templates/js/";
48 $tpl->addJavaScript($this->
getJsPath().
'ilStudyProgramme.js');
50 $templates[
'info'] =
$tpl->getMessageHTML(
"[MESSAGE]");
51 $templates[
'success'] =
$tpl->getMessageHTML(
"[MESSAGE]",
'success');
52 $templates[
'failure'] =
$tpl->getMessageHTML(
"[MESSAGE]",
'failure');
53 $templates[
'question'] =
$tpl->getMessageHTML(
"[MESSAGE]",
'question');
57 $tpl->addOnLoadCode(
"$('#".$this->content_container_id.
"').study_programme_notifications(".json_encode($this->js_config).
");");
59 $this->js_init =
true;
120 return $this->js_config[$key];
130 $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.