Campustream 1.0
A social network MQP for WPI
|
Static Public Member Functions | |
static | publish ($stream, $type, $id) |
static | id ($data) |
static | type ($data) |
Data Fields | |
const | STREAM_PUBLIC = 1 |
const | STREAM_FRIENDS = 2 |
const | STREAM_USER = 3 |
const | TYPE_STATUS = 'text' |
const | TYPE_QUESTION = 'question' |
const | TYPE_RESPONSE = 'response' |
const | TYPE_NEWSEVENT = 'newsevent' |
const | STREAM_LENGTH = 200 |
Helper class for managing the site streams
Definition at line 6 of file stream.php.
static id | ( | $ | data | ) | [static] |
Given some stream data, return the stream data's ID
Definition at line 86 of file stream.php.
static publish | ( | $ | stream, |
$ | type, | ||
$ | id | ||
) | [static] |
Publish a message to a site stream
$stream | The stream to publish to |
$type | What type of status message is it? |
$id | The MySQL ID for the status message |
Definition at line 29 of file stream.php.
static type | ( | $ | data | ) | [static] |
Given some stream data, return the stream data's type
Definition at line 94 of file stream.php.
const STREAM_FRIENDS = 2 |
Definition at line 10 of file stream.php.
const STREAM_LENGTH = 200 |
Definition at line 20 of file stream.php.
const STREAM_PUBLIC = 1 |
Definition at line 9 of file stream.php.
const STREAM_USER = 3 |
Definition at line 11 of file stream.php.
const TYPE_NEWSEVENT = 'newsevent' |
Definition at line 17 of file stream.php.
const TYPE_QUESTION = 'question' |
Definition at line 15 of file stream.php.
const TYPE_RESPONSE = 'response' |
Definition at line 16 of file stream.php.
const TYPE_STATUS = 'text' |
Definition at line 14 of file stream.php.