
Public Member Functions | |
| become ($args) | |
| index () | |
| setLocale ($args) | |
| setupTemplate ($subclass=false) | |
| validate ($loginCheck=true) | |
| viewPublicProfile ($args) | |
Definition at line 18 of file UserHandler.inc.php.
| UserHandler.become | ( | $ | args | ) |
Become a given role.
Definition at line 141 of file UserHandler.inc.php.
References DAORegistry.getDAO(), Request.getJournal(), TemplateManager.getManager(), Request.getUser(), Request.getUserVar(), Request.redirect(), and Request.redirectUrl().
| UserHandler.index | ( | ) |
Display user index page.
Reimplemented from Handler.
Definition at line 23 of file UserHandler.inc.php.
References DAORegistry.getDAO(), Request.getJournal(), OJSPaymentManager.getManager(), TemplateManager.getManager(), SessionManager.getManager(), Request.getUser(), setupTemplate(), and validate().
| UserHandler.setLocale | ( | $ | args | ) |
Change the locale for the current user.
| $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.
| $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.
| $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().
1.5.6