Campustream 1.0
A social network MQP for WPI
notification Class Reference

Public Member Functions

 __construct ($from, $type, $message, $link_id)
 __get ($key)

Data Fields

 $from_user_id
 $message
 $time_sent
 $type
 $is_read
 $link_id

Detailed Description

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.


Constructor & Destructor Documentation

__construct ( from,
type,
message,
link_id 
)

Creates a new notification

Parameters:
$fromWho is this notification from?
$typeWhat type of notification is this?
$messageThe text content of the notification
$link_idThe ID to use in the link for this content

Definition at line 182 of file notifications.php.


Member Function Documentation

__get ( key)

Definition at line 206 of file notifications.php.


Field Documentation

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


The documentation for this class was generated from the following file: