UserHandler Class Reference

Handle requests for user functions. More...

Inheritance diagram for UserHandler:

Handler CreateAccountHandler EmailHandler ProfileHandler List of all members.

Public Member Functions

 become ($args)
 checkIncompleteSetup ($conference)
 getRoleDataForConference ($userId, $conferenceId, $schedConfId, &$submissionsCount, &$isValid)
 index ()
 setLocale ($args)
 setupTemplate ($subclass=false)
 UserHandler ()
 validate ($loginCheck=true)
 viewCaptcha ($args)

Detailed Description

Handle requests for user functions.

Definition at line 21 of file

Member Function Documentation

UserHandler.become ( args  ) 

Become a given role.

Definition at line 230 of file

References Request.getSchedConf(), index(), Request.redirect(), and validate().

UserHandler.checkIncompleteSetup ( conference  ) 

Determine if the conference's setup has been sufficiently completed.

$conference Object
boolean True iff setup is incomplete

Definition at line 186 of file

Referenced by index().

UserHandler.getRoleDataForConference ( userId,
&$  submissionsCount,
&$  isValid 

Gather information about a user's role within a conference.

$userId int
$conferenceId int
$submissionsCount array reference
$isValid array reference

Definition at line 154 of file

References Validation.isAuthor(), Validation.isConferenceManager(), Validation.isDirector(), Validation.isReviewer(), and Validation.isTrackDirector().

Referenced by index().

UserHandler.index (  ) 

Display user index page.

Definition at line 32 of file

References SchedConfAction.allowRegAuthor(), SchedConfAction.allowRegReviewer(), checkIncompleteSetup(), Request.getConference(), getRoleDataForConference(), Request.getSchedConf(), setupTemplate(), SchedConfAction.submissionsOpen(), and validate().

Referenced by CreateAccountHandler.account(), become(), CreateAccountHandler.createAccount(), setLocale(), and setupTemplate().

UserHandler.setLocale ( args  ) 

Change the locale for the current user.

$args array first parameter is the new locale

Definition at line 198 of file

References Request.getConference(), index(), and Request.redirect().

UserHandler.setupTemplate ( subclass = false  ) 

Setup common template variables.

$subclass boolean set to true if caller is below this handler in the hierarchy

Definition at line 293 of file

References Request.getConference(), Request.getSchedConf(), index(), and Request.url().

Referenced by CreateAccountHandler.account(), ProfileHandler.changePassword(), CreateAccountHandler.createAccount(), CreateAccountHandler.createAccountDisabled(), index(), ProfileHandler.profile(), ProfileHandler.savePassword(), and ProfileHandler.saveProfile().

UserHandler.UserHandler (  ) 


Definition at line 25 of file

UserHandler.validate ( loginCheck = true  ) 

Validate that user is logged in. Redirects to login form if not logged in.

$loginCheck boolean check if user is logged in

Definition at line 279 of file

References Validation.isLoggedIn(), and Validation.redirectLogin().

Referenced by become(), ProfileHandler.changePassword(), index(), ProfileHandler.profile(), ProfileHandler.savePassword(), and ProfileHandler.saveProfile().

The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7