Public Member Functions

UserHandler Class Reference
[Pages_user]

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)

Detailed Description

Handle requests for user functions.

Definition at line 21 of file UserHandler.inc.php.


Member Function Documentation

UserHandler.become ( args  ) 

Become a given role.

Definition at line 230 of file UserHandler.inc.php.

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

UserHandler.checkIncompleteSetup ( conference  ) 

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

Parameters:
$conference Object
Returns:
boolean True iff setup is incomplete

Definition at line 186 of file UserHandler.inc.php.

Referenced by index().

UserHandler.getRoleDataForConference ( userId,
conferenceId,
schedConfId,
&$  submissionsCount,
&$  isValid 
)

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

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

Definition at line 154 of file UserHandler.inc.php.

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

Referenced by index().

UserHandler.setLocale ( args  ) 

Change the locale for the current user.

Parameters:
$args array first parameter is the new locale

Definition at line 198 of file UserHandler.inc.php.

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

UserHandler.setupTemplate ( subclass = false  ) 

Setup common template variables.

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

Definition at line 293 of file UserHandler.inc.php.

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

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

UserHandler.UserHandler (  ) 
UserHandler.validate ( loginCheck = true  ) 

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

Parameters:
$loginCheck boolean check if user is logged in

Definition at line 279 of file UserHandler.inc.php.

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: