Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
LoginHandler Class Reference
Inheritance diagram for LoginHandler:
PKPLoginHandler Handler PKPHandler

Public Member Functions

 _getLoginUrl ($request)
 
 _redirectAfterLogin ($request)
 
 _setMailFrom ($request, &$mail)
 
 setupTemplate ($request)
 
 signInAsUser ($args, $request)
 
 signOutAsUser ($args, $request)
 
- Public Member Functions inherited from PKPLoginHandler
 _redirectAfterLogin ($request)
 
 _setMailFrom ($request, $mail, $site)
 
 changePassword ($args, $request)
 
 implicitAuthLogin ($args, $request)
 
 implicitAuthReturn ($args, $request)
 
 index ($args, $request)
 
 lostPassword ($args, $request)
 
 PKPLoginHandler ()
 
 requestResetPassword ($args, $request)
 
 resetPassword ($args, $request)
 
 savePassword ($args, $request)
 
 signIn ($args, $request)
 
 signOut ($args, $request)
 
- Public Member Functions inherited from Handler
 getSiteRedirectContext ($request)
 
 getTargetContext ($request, $bestGuess=true)
 
 getWorkingContexts ($request)
 
 Handler ()
 
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 
 addPolicy ($authorizationPolicy, $addToTop=false)
 
 addRoleAssignment ($roleIds, $operations)
 
 authorize ($request, &$args, $roleAssignments, $enforceRestrictedSite=true)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
getDispatcher ()
 
 getFirstUserContext ($user, $contexts)
 
 getId ()
 
 getLastAuthorizationMessage ()
 
 getLoginExemptions ()
 
 getRoleAssignment ($roleId)
 
 getRoleAssignments ()
 
 getWorkingContexts ($request)
 
 index ($args, $request)
 
 initialize ($request, $args=null)
 
 PKPHandler ()
 
 setDispatcher ($dispatcher)
 
 setId ($id)
 
 setupTemplate ($request)
 
 validate ($requiredContexts=null, $request=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from PKPHandler
static getPageParamName ($rangeName)
 
static getRangeInfo ($request, $rangeName, $contextData=null)
 
static hashPageContext ($request, $contextData=array())
 
- Public Attributes inherited from PKPHandler
 $_authorizationDecisionManager
 
 $_checks = array()
 
 $_dispatcher
 
 $_id
 
 $_roleAssignments = array()
 

Detailed Description

Handle login/logout requests.

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

Member Function Documentation

LoginHandler::_getLoginUrl (   $request)

Get the log in URL.

Parameters
$requestPKPRequest

Definition at line 94 of file LoginHandler.inc.php.

LoginHandler::_redirectAfterLogin (   $request)

After a login has completed, direct the user somewhere.

Parameters
$requestPKPRequest

Definition at line 119 of file LoginHandler.inc.php.

References PKPHandler\getAuthorizedContextObject(), and Handler\getTargetContext().

LoginHandler::_setMailFrom (   $request,
$mail 
)

Helper Function - set mail from address

Parameters
$requestPKPRequest
MailTemplate$mail

Definition at line 103 of file LoginHandler.inc.php.

LoginHandler::setupTemplate (   $request)

Configure the template for display.

Definition at line 135 of file LoginHandler.inc.php.

References AppLocale\requireComponents().

Referenced by signInAsUser().

LoginHandler::signInAsUser (   $args,
  $request 
)

Sign in as another user.

Parameters
$argsarray ($userId)
$requestPKPRequest

Definition at line 24 of file LoginHandler.inc.php.

References PKPHandler\addCheck(), PKPValidation\canAdminister(), DAORegistry\getDAO(), setupTemplate(), and PKPHandler\validate().

LoginHandler::signOutAsUser (   $args,
  $request 
)

Restore original user account after signing in as a user.

Parameters
$argsarray
$requestPKPRequest

Definition at line 66 of file LoginHandler.inc.php.

References DAORegistry\getDAO(), and PKPHandler\validate().


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