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;
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.