Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ProfileHandler Class Reference
Inheritance diagram for ProfileHandler:
UserHandler PKPUserHandler Handler PKPHandler

Public Member Functions

 authorize ($request, &$args, $roleAssignments)
 
 changePassword ($args, $request)
 
 profile ($args, $request)
 
 ProfileHandler ()
 
 savePassword ($args, $request)
 
 saveProfile ($args, $request)
 
- Public Member Functions inherited from UserHandler
 become ($args, $request)
 
 index ($args, $request)
 
 initialize ($request, &$args)
 
 UserHandler ()
 
- Public Member Functions inherited from PKPUserHandler
 authorizationDenied ($args, $request)
 
 getInterests ($args, $request)
 
 PKPUserHandler ()
 
 setLocale ($args, $request)
 
 toggleHelp ($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 requests for modifying user profiles.

Definition at line 19 of file ProfileHandler.inc.php.

Member Function Documentation

ProfileHandler::authorize (   $request,
$args,
  $roleAssignments 
)

Authorize this request.

Routers will call this method automatically thereby enforcing authorization. This method will be called before the validate() method and before passing control on to the handler operation.

NB: This method will be called once for every request only.

Parameters
$requestRequest
$argsarray request arguments
$roleAssignmentsarray the operation role assignment, see getRoleAssignment() for more details.
$enforceRestrictedSiteboolean True iff site restrictions are to be enforced
Returns
boolean

Definition at line 33 of file ProfileHandler.inc.php.

References PKPHandler\addPolicy().

ProfileHandler::changePassword (   $args,
  $request 
)

Display form to change user's password.

Definition at line 97 of file ProfileHandler.inc.php.

References PKPHandler\setupTemplate().

ProfileHandler::profile (   $args,
  $request 
)

Display form to edit user's profile.

Definition at line 50 of file ProfileHandler.inc.php.

References PKPHandler\setupTemplate().

ProfileHandler::ProfileHandler ( )

Constructor

Definition at line 23 of file ProfileHandler.inc.php.

ProfileHandler::savePassword (   $args,
  $request 
)

Save user's new password.

Definition at line 112 of file ProfileHandler.inc.php.

References PKPHandler\setupTemplate().

ProfileHandler::saveProfile (   $args,
  $request 
)

Validate and save changes to user's profile.

Definition at line 67 of file ProfileHandler.inc.php.

References PKPHandler\setupTemplate().


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