Campustream 1.0
A social network MQP for WPI
|
Public Member Functions | |
save ($new_status=true) | |
delete () | |
load_user () | |
load_comments () | |
load_meta () | |
load_content () | |
__get ($key) | |
Data Fields | |
$table_name = 'statuses' | |
$columns = array('id', 'user_id', 'source', 'message', 'post_date', 'type', 'content_id', 'deleted', 'is_public') | |
$cache_keys = array( 'status/#' => 'id', 'statuses/user:#' => 'user_id') | |
$has_one = array('meta', 'content') | |
$has_many = array() | |
$public_columns = array( 'id', 'user_id', 'source', 'message', 'post_date', 'type', 'content_id', 'user', 'comments', 'num_comments', 'meta', 'content' ) | |
Static Public Attributes | |
static | $list_max_length = 200 |
Represents a single status update
Definition at line 6 of file status.php.
__get | ( | $ | key | ) |
Reimplemented from ActiveRecord.
Definition at line 180 of file status.php.
delete | ( | ) |
Soft-delete this status update for data collection purposes
Definition at line 66 of file status.php.
load_comments | ( | ) |
Load all comments posted under this status
Definition at line 105 of file status.php.
load_content | ( | ) |
Load the content relating to this status update
Definition at line 137 of file status.php.
load_meta | ( | ) |
Load metadata relating to this status update
Definition at line 120 of file status.php.
load_user | ( | ) |
Load the user who posted this status update
Definition at line 90 of file status.php.
save | ( | $ | new_status = true | ) |
Save this status update in MySQL and Redis
Definition at line 23 of file status.php.
$cache_keys = array( 'status/#' => 'id', 'statuses/user:#' => 'user_id') |
Definition at line 10 of file status.php.
$columns = array('id', 'user_id', 'source', 'message', 'post_date', 'type', 'content_id', 'deleted', 'is_public') |
Reimplemented from ActiveRecord.
Definition at line 9 of file status.php.
$has_many = array() |
Reimplemented from ActiveRecord.
Definition at line 12 of file status.php.
$has_one = array('meta', 'content') |
Reimplemented from ActiveRecord.
Definition at line 11 of file status.php.
$list_max_length = 200 [static] |
The max number of statuses to store per stream
Definition at line 18 of file status.php.
$public_columns = array( 'id', 'user_id', 'source', 'message', 'post_date', 'type', 'content_id', 'user', 'comments', 'num_comments', 'meta', 'content' ) |
Definition at line 13 of file status.php.
$table_name = 'statuses' |
Reimplemented from ActiveRecord.
Definition at line 8 of file status.php.