Campustream 1.0
A social network MQP for WPI
|
Public Member Functions | |
new_action () | |
twitter_login () | |
twitter_finish () | |
create () | |
destroy () | |
Static Public Member Functions | |
static | rebuild_using_access_token ($access_token) |
static | generate_access_token ($user) |
Data Fields | |
$template = 'template/main' | |
$enable_session = true |
Manages site sessions including creation of new users and new sessions, as well as destroying sessions. Also handles Twitter and Facebook authentication.
Definition at line 8 of file session.php.
create | ( | ) |
Creates a new user via registration.
Definition at line 108 of file session.php.
destroy | ( | ) |
Definition at line 206 of file session.php.
static generate_access_token | ( | $ | user | ) | [static] |
Generates an access token for API authentication.
Definition at line 199 of file session.php.
new_action | ( | ) |
Finds the given user, sets the session to log the user in, and redirects the user.
Definition at line 16 of file session.php.
static rebuild_using_access_token | ( | $ | access_token | ) | [static] |
Rebuilds a user's session based on the given access token. This is for API authentication.
Definition at line 168 of file session.php.
twitter_finish | ( | ) |
Finishes the Twitter login process. The user arrives here after Twitter confirms their identity and account.
Definition at line 74 of file session.php.
twitter_login | ( | ) |
Logs a user in via Twitter by redirecting to the Twitter OAuth login page. If the user is already logged in, they will be immediately redirected back to Campustream.
Definition at line 47 of file session.php.
$enable_session = true |
Reimplemented from Controller.
Definition at line 10 of file session.php.
$template = 'template/main' |
Reimplemented from Controller.
Definition at line 9 of file session.php.