Campustream 1.0
A social network MQP for WPI
|
Public Member Functions | |
get_session_params () | |
get_session_secret () | |
get_session_key () | |
facebook () | |
has_facebook () | |
facebook_api () | |
fb_prepare ($data) | |
twitter () | |
has_twitter () | |
twitter_api () | |
avatar_url ($size= 'medium', $placeholder=false) | |
avatar_path ($size= 'medium', $format=false) | |
follow ($user) | |
unfollow ($user) | |
follows () | |
followers () | |
is_followed_by ($user) | |
is_following ($user) | |
follows_count () | |
followers_count () | |
__get ($key) | |
__set ($key, $value) | |
Static Public Member Functions | |
static | get_session_object ($user_id) |
static | find_user_for_login ($username, $password, $is_hashed=false) |
Data Fields | |
$columns = array('id', 'username', 'name', 'bio', 'website', 'college_majors', 'college_minors', 'class_year', 'email', 'password', 'join_date', 'has_avatar', 'avatar_format', 'current_status', 'karma', 'confirmed', 'confirm_code', 'email_enabled') | |
$cache_keys = array( 'user/#' => 'id', 'user/name:#' => 'username' ) | |
$has_many = array() | |
$public_columns = array( 'id', 'username', 'name', 'bio', 'website', 'college_majors', 'college_minors', 'class_year', 'join_date', 'current_status', 'follows_count', 'followers_count', 'avatar', 'karma') | |
Represents a single user, which also represents sessions in Hub
__get | ( | $ | key | ) |
Reimplemented from ActiveRecord.
__set | ( | $ | key, |
$ | value | ||
) |
Reimplemented from ActiveRecord.
avatar_path | ( | $ | size = 'medium' , |
$ | format = false |
||
) |
avatar_url | ( | $ | size = 'medium' , |
$ | placeholder = false |
||
) |
( | ) |
facebook_api | ( | ) |
static find_user_for_login | ( | $ | username, |
$ | password, | ||
$ | is_hashed = false |
||
) | [static] |
get_session_key | ( | ) |
Implements SessionObject.
static get_session_object | ( | $ | user_id | ) | [static] |
Implements SessionObject.
get_session_params | ( | ) |
Implements SessionObject.
get_session_secret | ( | ) |
Implements SessionObject.
has_facebook | ( | ) |
has_twitter | ( | ) |
is_followed_by | ( | $ | user | ) |
is_following | ( | $ | user | ) |
( | ) |
twitter_api | ( | ) |
$cache_keys = array( 'user/#' => 'id', 'user/name:#' => 'username' ) |
$columns = array('id', 'username', 'name', 'bio', 'website', 'college_majors', 'college_minors', 'class_year', 'email', 'password', 'join_date', 'has_avatar', 'avatar_format', 'current_status', 'karma', 'confirmed', 'confirm_code', 'email_enabled') |
Reimplemented from ActiveRecord.
$has_many = array() |
Reimplemented from ActiveRecord.
$public_columns = array( 'id', 'username', 'name', 'bio', 'website', 'college_majors', 'college_minors', 'class_year', 'join_date', 'current_status', 'follows_count', 'followers_count', 'avatar', 'karma') |