wCMF
3.6
|
Public Member Functions | |
initialize ($params) | |
& | createUserImpl ($name, $firstname, $login, $password) |
removeUserImpl (&$user) | |
setUserPropertyImpl (&$user, $property, $value) | |
& | createRoleImpl ($name) |
removeRoleImpl (&$role) | |
setRolePropertyImpl (&$role, $property, $value) | |
addUserToRoleImpl (&$role, &$user) | |
removeUserFromRoleImpl (&$role, &$user) | |
openConnection ($params) | |
initialize ($params) | |
createUserImpl ($name, $firstname, $login, $password) | |
removeUserImpl ($user) | |
setUserPropertyImpl ($user, $property, $value) | |
createRoleImpl ($name) | |
removeRoleImpl ($role) | |
setRolePropertyImpl ($role, $property, $value) | |
addUserToRoleImpl ($role, $user) | |
removeUserFromRoleImpl ($role, $user) | |
![]() | |
UserManager ($params) | |
encryptPassword ($password) | |
onError ($message, $file='', $line='') | |
startTransaction () | |
commitTransaction () | |
rollbackTransaction () | |
& | createUser ($name, $firstname, $login, $password, $passwordRepeated) |
removeUser ($login) | |
setUserProperty ($login, $property, $value) | |
resetPassword ($login, $newPassword, $newPasswordRepeated) | |
changePassword ($login, $oldPassword, $newPassword, $newPasswordRepeated) | |
& | createRole ($name) |
removeRole ($name) | |
setRoleProperty ($name, $property, $value) | |
addUserToRole ($rolename, $login) | |
removeUserFromRole ($rolename, $login) | |
listUsers () | |
listRoles () | |
listUserRoles ($login) | |
listRoleMembers ($rolename) | |
& | getUser ($login) |
& | getRole ($name) |
& | getPrincipal ($oid) |
removePrincipal ($oid) | |
getUserClassName () | |
getRoleClassName () | |
initialize ($params) | |
& | createUserImpl ($name, $firstname, $login, $password) |
removeUserImpl (&$user) | |
setUserPropertyImpl (&$user, $property, $value) | |
& | createRoleImpl ($name) |
removeRoleImpl (&$role) | |
setRolePropertyImpl (&$role, $property, $value) | |
addUserToRoleImpl (&$role, &$user) | |
removeUserFromRoleImpl (&$role, &$user) | |
Public Attributes | |
$_conn = null | |
$_dbPrefix = '' | |
![]() | |
$_initParams = null | |
$_userRepository = null | |
$_roleConfig = null | |
UserManagerRDB is a UserManager that stores user and role information in a database using RDBMappers. The User and Role implementation classes are defined by the configuration keys 'User' and 'Role' in the [implementation] section.
UserManagerRDB is a UserManager that stores user and role information in a database.
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.
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.
Definition at line 33 of file class.UserManagerRDB.php.
UserManagerRDB::initialize | ( | $params | ) |
Definition at line 38 of file class.UserManagerRDB.php.
References BUILDDEPTH_SINGLE, PersistenceFacade\createObjectQuery(), UserManager\getRoleClassName(), and UserManager\getUserClassName().
& UserManagerRDB::createUserImpl | ( | $name, | |
$firstname, | |||
$login, | |||
$password | |||
) |
Definition at line 71 of file class.UserManagerRDB.php.
References BUILDDEPTH_REQUIRED, PersistenceFacade\getInstance(), and UserManager\getUserClassName().
UserManagerRDB::removeUserImpl | ( | & | $user | ) |
Definition at line 87 of file class.UserManagerRDB.php.
UserManagerRDB::setUserPropertyImpl | ( | & | $user, |
$property, | |||
$value | |||
) |
Definition at line 95 of file class.UserManagerRDB.php.
References DATATYPE_ATTRIBUTE.
& UserManagerRDB::createRoleImpl | ( | $name | ) |
Definition at line 104 of file class.UserManagerRDB.php.
References BUILDDEPTH_REQUIRED, PersistenceFacade\getInstance(), and UserManager\getRoleClassName().
UserManagerRDB::removeRoleImpl | ( | & | $role | ) |
Definition at line 117 of file class.UserManagerRDB.php.
UserManagerRDB::setRolePropertyImpl | ( | & | $role, |
$property, | |||
$value | |||
) |
Definition at line 125 of file class.UserManagerRDB.php.
References DATATYPE_ATTRIBUTE.
UserManagerRDB::addUserToRoleImpl | ( | & | $role, |
& | $user | ||
) |
Definition at line 134 of file class.UserManagerRDB.php.
UserManagerRDB::removeUserFromRoleImpl | ( | & | $role, |
& | $user | ||
) |
Definition at line 142 of file class.UserManagerRDB.php.
UserManagerRDB::openConnection | ( | $params | ) |
Open the database connection.
params | Assoziative array with the following keys: dbType, dbHostName, dbUserName, dbPassword, dbName if dbPrefix is given it will be appended to every table string, which is usefull if different cms operate on the same database |
Definition at line 44 of file class.UserManagerRDB.php.
References InifileParser\getInstance(), and WCMFException\throwEx().
Referenced by initialize().
UserManagerRDB::initialize | ( | $params | ) |
CREATE TABLE nm_user_role ( fk_user_id int(11) NOT NULL default '0', fk_role_id int(11) NOT NULL default '0', KEY fk_user_id (fk_user_id,fk_role_id) ) TYPE=MyISAM; CREATE TABLE role ( id int(11) NOT NULL auto_increment, name varchar(50) default NULL, PRIMARY KEY (id) ) TYPE=MyISAM; CREATE TABLE user ( id int(11) NOT NULL auto_increment, name varchar(50) default NULL, firstname varchar(50) default NULL, login varchar(50) default NULL, password varchar(50) default NULL, config varchar(255) default NULL, PRIMARY KEY (id) ) TYPE=MyISAM;
Definition at line 97 of file class.UserManagerRDB.php.
References openConnection().
UserManagerRDB::createUserImpl | ( | $name, | |
$firstname, | |||
$login, | |||
$password | |||
) |
Definition at line 136 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::removeUserImpl | ( | $user | ) |
Definition at line 153 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::setUserPropertyImpl | ( | $user, | |
$property, | |||
$value | |||
) |
Definition at line 174 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::createRoleImpl | ( | $name | ) |
Definition at line 187 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::removeRoleImpl | ( | $role | ) |
Definition at line 203 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::setRolePropertyImpl | ( | $role, | |
$property, | |||
$value | |||
) |
Definition at line 224 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::addUserToRoleImpl | ( | $role, | |
$user | |||
) |
Definition at line 237 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::removeUserFromRoleImpl | ( | $role, | |
$user | |||
) |
Definition at line 250 of file class.UserManagerRDB.php.
References Log\error(), and WCMFException\throwEx().
UserManagerRDB::$_conn = null |
Definition at line 35 of file class.UserManagerRDB.php.
UserManagerRDB::$_dbPrefix = '' |
Definition at line 36 of file class.UserManagerRDB.php.