wCMF
3.6
|
Public Member Functions | |
initialize (&$request, &$response) | |
validate () | |
hasView () | |
executeKernel () | |
beforeDelete (&$principal) | |
afterInsert (&$principal) | |
afterUpdate (&$principal) | |
![]() | |
Controller (&$delegate) | |
initialize (&$request, &$response) | |
validate () | |
hasView () | |
execute () | |
executeKernel () | |
getErrorMsg () | |
setErrorMsg ($msg) | |
appendErrorMsg ($msg) | |
& | getRequest () |
& | getResponse () |
& | getView () |
& | getDelegate () |
getViewTemplate ($controller, $context, $action) | |
getCacheId () | |
assignViewDefaults (&$view) | |
isLocalizedRequest () | |
Public Attributes | |
$_userManager = null | |
![]() | |
$_request = null | |
$_response = null | |
$_errorMsg = '' | |
$_view = null | |
$_delegate = null | |
PrincipalController is used to edit users and roles.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Input actions:
Output actions:
[in,out] | newtype | The principal type to create (user or role) |
[in] | deleteoids | A comma separated list of principal object ids to delete |
[in,out] | oid | The object id of the principal to edit |
[in] | <oid> | A node defining what to save. The node should only contain those values, that should be changed This may be achived by creating the node using the node constructor (instead of using PersistenceFacade::create) and setting the values on it. |
[in] | changepassword | If given, the password will tried to be changed |
[in] | newpassword1 | The new password of the current user |
[in] | newpassword2 | The new password of the current user repeated |
[in] | principals | The list of all users that should belong to the displayed role or the list of all roles that the displayed user should have |
[out] | principal | The principal to display |
[out] | principalBaseList | The list of all users, if a role is displayed or the list of all roles if a user is displayed |
[out] | principalList | The list of all users that belong to the displayed role or the list of all roles that the displayed user has |
Definition at line 60 of file class.PrincipalController.php.
PrincipalController::initialize | ( | & | $request, |
& | $response | ||
) |
Definition at line 67 of file class.PrincipalController.php.
References ObjectFactory\getInstance().
PrincipalController::validate | ( | ) |
Definition at line 84 of file class.PrincipalController.php.
References Controller\setErrorMsg().
PrincipalController::hasView | ( | ) |
Definition at line 115 of file class.PrincipalController.php.
PrincipalController::executeKernel | ( | ) |
Process action and assign data to View.
Definition at line 128 of file class.PrincipalController.php.
References afterInsert(), afterUpdate(), beforeDelete(), DATATYPE_ATTRIBUTE, WCMFInifileParser\getIniFiles(), PersistenceFacade\getInstance(), UserManager\getRoleClassName(), UserManager\getUserClassName(), ROLE_PROPERTY_NAME, USER_PROPERTY_CONFIG, USER_PROPERTY_FIRSTNAME, USER_PROPERTY_LOGIN, and USER_PROPERTY_NAME.
PrincipalController::beforeDelete | ( | & | $principal | ) |
Called before deleting an exisiting principal.
principal | A reference to the principal to delete ( |
Definition at line 279 of file class.PrincipalController.php.
Referenced by executeKernel().
PrincipalController::afterInsert | ( | & | $principal | ) |
Called after inserting a new principal.
principal | A reference to the principal inserted ( |
Definition at line 285 of file class.PrincipalController.php.
Referenced by executeKernel().
PrincipalController::afterUpdate | ( | & | $principal | ) |
Called after updating an existing principal.
principal | A reference to the principal updated ( |
Definition at line 291 of file class.PrincipalController.php.
Referenced by executeKernel().
PrincipalController::$_userManager = null |
Definition at line 62 of file class.PrincipalController.php.