wCMF  3.6
All Classes Namespaces Files Functions Variables Groups Pages
UserManagerRDB Class Reference
+ Inheritance diagram for UserManagerRDB:

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)
 
- Public Member Functions inherited from UserManager
 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 = ''
 
- Public Attributes inherited from UserManager
 $_initParams = null
 
 $_userRepository = null
 
 $_roleConfig = null
 

Detailed Description

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.

Id:
class.UserManagerRDB.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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.

Id:
class.UserManagerRDB.php 1462 2014-02-04 23:52:27Z iherwig
Deprecated:
Use UserManagerRDB instead
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 33 of file class.UserManagerRDB.php.

Member Function Documentation

UserManagerRDB::initialize (   $params)
& UserManagerRDB::createUserImpl (   $name,
  $firstname,
  $login,
  $password 
)
See Also
UserManager::createUserImpl()

Definition at line 71 of file class.UserManagerRDB.php.

References BUILDDEPTH_REQUIRED, PersistenceFacade\getInstance(), and UserManager\getUserClassName().

+ Here is the call graph for this function:

UserManagerRDB::removeUserImpl ( $user)
See Also
UserManager::removeUserImpl()

Definition at line 87 of file class.UserManagerRDB.php.

UserManagerRDB::setUserPropertyImpl ( $user,
  $property,
  $value 
)
See Also
UserManager::setUserPropertyImpl()

Definition at line 95 of file class.UserManagerRDB.php.

References DATATYPE_ATTRIBUTE.

& UserManagerRDB::createRoleImpl (   $name)
See Also
UserManager::createRoleImpl()

Definition at line 104 of file class.UserManagerRDB.php.

References BUILDDEPTH_REQUIRED, PersistenceFacade\getInstance(), and UserManager\getRoleClassName().

+ Here is the call graph for this function:

UserManagerRDB::removeRoleImpl ( $role)
See Also
UserManager::removeRoleImpl()

Definition at line 117 of file class.UserManagerRDB.php.

UserManagerRDB::setRolePropertyImpl ( $role,
  $property,
  $value 
)
See Also
UserManager::setRolePropertyImpl()

Definition at line 125 of file class.UserManagerRDB.php.

References DATATYPE_ATTRIBUTE.

UserManagerRDB::addUserToRoleImpl ( $role,
$user 
)
See Also
UserManager::addUserToRoleImpl()

Definition at line 134 of file class.UserManagerRDB.php.

UserManagerRDB::removeUserFromRoleImpl ( $role,
$user 
)
UserManagerRDB::openConnection (   $params)

Open the database connection.

Parameters
paramsAssoziative 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().

+ Here is the call graph for this function:

UserManagerRDB::initialize (   $params)
See Also
UserManager::initialize()
Note
This class relies on the following database tables
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;
Initialization data given in the constructor require the following keys: dbType, dbHostName, dbUserName, dbPassword, dbName

Definition at line 97 of file class.UserManagerRDB.php.

References openConnection().

+ Here is the call graph for this function:

UserManagerRDB::createUserImpl (   $name,
  $firstname,
  $login,
  $password 
)
See Also
UserManager::createUserImpl()

Definition at line 136 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::removeUserImpl (   $user)
See Also
UserManager::removeUserImpl()

Definition at line 153 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::setUserPropertyImpl (   $user,
  $property,
  $value 
)
See Also
UserManager::setUserPropertyImpl()

Definition at line 174 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::createRoleImpl (   $name)
See Also
UserManager::createRoleImpl()

Definition at line 187 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::removeRoleImpl (   $role)
See Also
UserManager::removeRoleImpl()

Definition at line 203 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::setRolePropertyImpl (   $role,
  $property,
  $value 
)
See Also
UserManager::setRolePropertyImpl()

Definition at line 224 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::addUserToRoleImpl (   $role,
  $user 
)
See Also
UserManager::addUserToRoleImpl()

Definition at line 237 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

UserManagerRDB::removeUserFromRoleImpl (   $role,
  $user 
)
See Also
UserManager::removeUserFromRoleImpl()

Definition at line 250 of file class.UserManagerRDB.php.

References Log\error(), and WCMFException\throwEx().

+ Here is the call graph for this function:

Member Data Documentation

UserManagerRDB::$_conn = null

Definition at line 35 of file class.UserManagerRDB.php.

UserManagerRDB::$_dbPrefix = ''

Definition at line 36 of file class.UserManagerRDB.php.


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