3require_once 
'Services/Notifications/classes/class.ilNotificationSetupHelper.php';
 
    4require_once 
'Services/Notifications/classes/class.ilNotificationEchoHandler.php';
 
   21                    'notification_osd_id' => array(
'integer', 
$id),
 
   22                    'usr_id' => array(
'integer', $notification->user->getId()),
 
   23                    'serialized' => array(
'text', serialize($notification)),
 
   24                    'valid_until' => array(
'integer', $notification->baseNotification->getValidForSeconds() ? ($notification->baseNotification->getValidForSeconds() + time()) : 0),
 
   25                    'visible_for' => array(
'integer', $notification->baseNotification->getVisibleForSeconds() ? $notification->baseNotification->getVisibleForSeconds() : 0),
 
   26                    'type' => array(
'text', $notification->baseNotification->getType()),
 
   27                    'time_added' => array(
'integer', time()),
 
   36        $txt->setRequired(
true);
 
   37        $txt->setInfo(
$lng->txt(
'polling_in_seconds'));
 
   38        $txt->setValue(
'300');
 
   40        $item->addSubItem(
$txt);
 
   42        return array(
'osd_polling_intervall');
 
   50            . 
' WHERE usr_id = %s AND (valid_until = 0 OR valid_until > ' . 
$ilDB->quote(time(), 
'integer') . 
') AND time_added > %s';
 
   52        $types = array(
'integer', 
'integer');
 
   53        $values = array($user_id, $max_age_seconds ? (time() - $max_age_seconds) : 0);
 
   56        $notifications = array();
 
   59            $row[
'data'] = unserialize(
$row[
'serialized']);
 
   60            unset(
$row[
'serialized']);
 
   62            $row[
'data']->handlerParams = array(
'general' => 
$row[
'data']->handlerParams[
''], 
'osd' => 
$row[
'data']->handlerParams[
'osd']);
 
   64            if ($append_osd_id_to_link) {
 
   65                if (
$row[
'data']->link) {
 
   72            $notifications[] = 
$row;
 
   77        return $notifications;
 
   83        preg_match_all(
'/href="(.*?)"/', $subject, $matches);
 
   85            foreach ($matches[1] as $match) {
 
   87                $subject = str_replace($match, $match_appended, $subject);
 
  105        $types = array(
'integer');
 
  106        $values = array($notification_osd_id);
 
  112            $types = array(
'integer');
 
  113            $values = array($notification_osd_id);
 
  147        $rnd = rand(0, 10000);
 
  163        if (strpos($link, 
'?') !== 
false) {
 
  164            $link .= 
'&' . $param . 
'=' . $value;
 
  166            $link .= 
'?' . $param . 
'=' . $value;
 
An exception for terminatinating execution or to throw for unit testing.
Basic notification handler that dumps basic notification information to stdout.
Notification handler for senden a notification popup to the recipients browser.
static appendOsdIdToLinks($subject, $osd_id)
static removeNotification($notification_osd_id)
Removes a notifcation and triggers a follow up notification to remove the notification from the brows...
static cleanup()
Remove orphaned notifications.
static cleanupOnRandom()
Exec self::clean with a probability of 1%.
notify(ilNotificationObject $notification)
static getNotificationsForUser($user_id, $append_osd_id_to_link=true, $max_age_seconds=0)
static appendParamToLink($link, $param, $value)
Helper to append an additional parameter to an existing url.
A concrete notification based on the ilNotificationConfiguration and returned by ilNotificationConfig...
static $tbl_notification_osd_handler
This class represents a text property in a property form.
if(!array_key_exists('StateId', $_REQUEST)) $id