Campustream 1.0
A social network MQP for WPI
User_Controller Class Reference
Inheritance diagram for User_Controller:
Controller REST

Public Member Functions

 authorize ()
 show ($args)
 avatar ($args)
 list_users ()
 show_list ()

Data Fields

 $enable_session = true
 $template = 'template/main'

Detailed Description

Handles all interactions with users on Campustream

Definition at line 6 of file user.php.


Member Function Documentation

authorize ( )

Authorizes a user given a username and password. Used by the API since it returns an access token.

Definition at line 14 of file user.php.

avatar ( args)

Pretty API endpoint for redirecting to a user's avatar. Used for the API.

Definition at line 98 of file user.php.

list_users ( )

Lists users of the site.

Definition at line 116 of file user.php.

show ( args)

Shows the given user's profile page.

Definition at line 43 of file user.php.

show_list ( )

Loads all users whose names start with the given letter.

Definition at line 129 of file user.php.


Field Documentation

$enable_session = true

Reimplemented from Controller.

Definition at line 7 of file user.php.

$template = 'template/main'

Reimplemented from Controller.

Definition at line 8 of file user.php.


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