UserHandler Class Reference
[Pages_user]

Handle requests for user functions. More...

Inheritance diagram for UserHandler:

Handler EmailHandler ProfileHandler RegistrationHandler

List of all members.

Public Member Functions

 become ($args)
 index ()
 setLocale ($args)
 setupTemplate ($subclass=false)
 validate ($loginCheck=true)
 viewPublicProfile ($args)


Detailed Description

Handle requests for user functions.

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


Member Function Documentation

UserHandler.become ( args  ) 

UserHandler.index (  ) 

UserHandler.setLocale ( args  ) 

Change the locale for the current user.

Parameters:
$args array first parameter is the new locale

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

References Request.getJournal(), Request.getProtocol(), Request.getServerHost(), Request.getSession(), Request.getSite(), Request.getUserVar(), Locale.isLocaleValid(), Request.redirect(), and Request.redirectUrl().

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 194 of file UserHandler.inc.php.

References TemplateManager.getManager(), and Request.url().

Referenced by index().

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

Reimplemented from Handler.

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

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

Referenced by index(), ProfileHandler.savePassword(), ProfileHandler.saveProfile(), and viewPublicProfile().

UserHandler.viewPublicProfile ( args  ) 

View the public user profile for a user, specified by user ID, if that user should be exposed for public view.

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

References DAORegistry.getDAO(), TemplateManager.getManager(), Request.redirect(), and validate().


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

Generated on Mon Jul 14 10:55:48 2008 for Open Journal Systems by  doxygen 1.5.6