Campustream 1.0
A social network MQP for WPI
|
Public Member Functions | |
__construct ($from, $type, $message, $link_id) | |
__get ($key) | |
Data Fields | |
$from_user_id | |
$message | |
$time_sent | |
$type | |
$is_read | |
$link_id |
Class representing a single notification. This class is serialized when it is saved in Redis, and unserialized when retrieved.
Definition at line 164 of file notifications.php.
__construct | ( | $ | from, |
$ | type, | ||
$ | message, | ||
$ | link_id | ||
) |
Creates a new notification
$from | Who is this notification from? |
$type | What type of notification is this? |
$message | The text content of the notification |
$link_id | The ID to use in the link for this content |
Definition at line 182 of file notifications.php.
__get | ( | $ | key | ) |
Definition at line 206 of file notifications.php.
$from_user_id |
Definition at line 165 of file notifications.php.
$is_read |
Definition at line 169 of file notifications.php.
$link_id |
Definition at line 170 of file notifications.php.
$message |
Definition at line 166 of file notifications.php.
$time_sent |
Definition at line 167 of file notifications.php.
$type |
Definition at line 168 of file notifications.php.