Detailed Description

UserController is used to change the current user's password.

The controller supports the following actions:

Action default
Handle actions regarding the current user
For details about the parameters, see documentation of the methods.
Response Actions
ok In all cases
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 47 of file UserController.php.

+ Inheritance diagram for UserController:

Public Member Functions

 __construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, PrincipalFactory $principalFactory)
 
 changePassword ()
 
 setConfigValue ()
 
 getConfigValue ()
 
- Public Member Functions inherited from Controller
 __construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration)
 
 initialize (Request $request, Response $response)
 
 execute ($method=null)
 
 getRequest ()
 
 getResponse ()
 

Protected Member Functions

 changePasswordImpl (User $user, $oldPassword, $newPassword, $newPasswordRepeated)
 
- Protected Member Functions inherited from Controller
 validate ()
 
 doExecute ($method=null)
 
 executeSubAction ($action)
 
 redirect ($location, $key=null, $data=null)
 
 getLogger ()
 
 getSession ()
 
 getPersistenceFacade ()
 
 getPermissionManager ()
 
 getActionMapper ()
 
 getLocalization ()
 
 getMessage ()
 
 getConfiguration ()
 
 requireTransaction ()
 
 endTransaction ($commit)
 
 isLocalizedRequest ()
 
 checkLanguageParameter ()
 
 generateCsrfToken ($name)
 
 validateCsrfToken ($name)
 
 getLocalSessionValue ($key, $default=null)
 
 setLocalSessionValue ($key, $value)
 
 clearLocalSessionValues ()
 

Additional Inherited Members

- Public Attributes inherited from Controller
const CSRF_TOKEN_PARAM = 'csrf_token'
 

Constructor & Destructor Documentation

__construct ( Session  $session,
PersistenceFacade  $persistenceFacade,
PermissionManager  $permissionManager,
ActionMapper  $actionMapper,
Localization  $localization,
Message  $message,
Configuration  $configuration,
PrincipalFactory  $principalFactory 
)

Constructor.

Parameters
$session
$persistenceFacade
$permissionManager
$actionMapper
$localization
$message
$configuration
$principalFactory

Definition at line 63 of file UserController.php.

Member Function Documentation

changePassword ( )

Change the user's password.

Parameter Description
in oldpassword The old password
in newpassword1 The new password
in newpassword2 The new password

Definition at line 85 of file UserController.php.

setConfigValue ( )

Set a configuration for the user.

Parameter Description
in name The configuration name
in value The configuration value

Definition at line 120 of file UserController.php.

getConfigValue ( )

Get a configuration for the user.

Parameter Description
in name The configuration name
out value The configuration value

Definition at line 164 of file UserController.php.

changePasswordImpl ( User  $user,
  $oldPassword,
  $newPassword,
  $newPasswordRepeated 
)
protected

Change a users password.

Parameters
$userThe User instance
$oldPasswordThe old password of the user
$newPasswordThe new password for the user
$newPasswordRepeatedThe new password of the user again

Definition at line 193 of file UserController.php.