Campustream 1.0
A social network MQP for WPI
stream Class Reference

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

Detailed Description

Helper class for managing the site streams

Definition at line 6 of file stream.php.


Member Function Documentation

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

Parameters:
$streamThe stream to publish to
$typeWhat type of status message is it?
$idThe 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.


Field Documentation

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.


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