\Alert

Implements the notification system of Titan.

Summary

Methods
Properties
Constants
singleton()
getAlerts()
getAlertMessage()
sendMail()
read()
delete()
add()
remove()
garbageCollector()
isActive()
sendMobileNotification()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
getFromTemplate()
register()
unregister()
$alert
$templates
$tags
$active
N/A

Properties

$alert

$alert : 

Type

$templates

$templates : 

Type

$tags

$tags : 

Type

$active

$active : 

Type

Methods

singleton()

singleton() 

getAlerts()

getAlerts(  $userId) 

Parameters

$userId

getAlertMessage()

getAlertMessage(  $id,   $user,   $useUntil = TRUE) 

Parameters

$id
$user
$useUntil

sendMail()

sendMail(  $id = NULL) 

Parameters

$id

read()

read(  $id,   $user) 

Parameters

$id
$user

delete()

delete(  $id,   $user) 

Parameters

$id
$user

add()

add(  $template,   $assign,   $users,   $tags = NULL,   $until = NULL,   $author = NULL,   $overwrite = TRUE,   $mail = NULL) 

Parameters

$template
$assign
$users
$tags
$until
$author
$overwrite
$mail

remove()

remove(  $template,   $assign) 

Parameters

$template
$assign

garbageCollector()

garbageCollector() 

isActive()

isActive() 

sendMobileNotification()

sendMobileNotification() 

__construct()

__construct() 

getFromTemplate()

getFromTemplate(  $template,   $attribute) 

Parameters

$template
$attribute

register()

register(  $template,   $assign,   $users,   $tags = NULL,   $until = NULL,   $author = NULL,   $overwrite = TRUE,   $mail = NULL) 

Parameters

$template
$assign
$users
$tags
$until
$author
$overwrite
$mail

unregister()

unregister(  $template,   $assign) 

Parameters

$template
$assign