74 $this->disableAfterDelivery = $value;
90 $this->iconPath =
$path;
109 public function setTitleVar($name, $parameters = array(), $language_module =
'notification') {
114 return $this->title->getName();
137 return $this->short_description->getName();
160 return $this->long_description->getName();
165 'title' => $this->title,
166 'longDescription' => $this->long_description,
167 'shortDescription' => $this->short_description,
180 $this->validForSeconds = $seconds;
208 final public function notifyByUsers(array $recipients, $processAsync =
false) {
209 require_once
'Services/Notifications/classes/class.ilNotificationSystem.php';
217 require_once
'Services/Notifications/classes/class.ilNotificationSystem.php';
224 require_once
'Services/Notifications/classes/class.ilNotificationSystem.php';
237 if ($languageVars[$this->title->getName()]->lang[$user->
getLanguage()]) {
240 else if ($languageVars[$this->title->getName()]->lang[$defaultLanguage]) {
241 $title = $languageVars[$this->title->getName()]->lang[$defaultLanguage];
244 $title = $this->title->getName();
247 if ($languageVars[$this->short_description->getName()]->lang[$user->
getLanguage()]) {
248 $short = $languageVars[$this->short_description->getName()]->lang[$user->
getLanguage()];
250 else if ($languageVars[$this->short_description->getName()]->lang[$defaultLanguage]) {
251 $short = $languageVars[$this->short_description->getName()]->lang[$defaultLanguage];
254 $short = $this->short_description->getName();
257 if ($languageVars[$this->long_description->getName()]->lang[$user->
getLanguage()]) {
258 $long = $languageVars[$this->long_description->getName()]->lang[$user->
getLanguage()];
260 else if ($languageVars[$this->long_description->getName()]->lang[$defaultLanguage]) {
261 $long = $languageVars[$this->long_description->getName()]->lang[$defaultLanguage];
264 $long = $this->long_description->getName();
267 $notificationObject->title =
$title;
268 $notificationObject->shortDescription = $short;
269 $notificationObject->longDescription = $long;
273 return $notificationObject;
277 if (strpos($name,
'.')) {
278 $nsParts = explode(
'.', $name, 2);
280 $field = $nsParts[1];
281 $this->handlerParams[$ns][$field] = $value;
284 $this->handlerParams[
''][$name] = $value;
293 unset($this->handlerParams[$name]);
329 $this->link = $this->baseNotification->getLink();
330 $this->linktarget = $this->baseNotification->getLinktarget();
331 $this->handlerParams = $this->baseNotification->getHandlerParams();
335 return array(
'title',
'shortDescription',
'longDescription',
'iconPath',
'link',
'linktarget',
'handlerParams');