|
wCMF
3.6
|
Inheritance diagram for UserManagerXML:Public Member Functions | |
| openConnection ($lock=true) | |
| closeConnection () | |
| validateChanges () | |
| startTransaction () | |
| commitTransaction () | |
| rollbackTransaction () | |
| initialize ($params) | |
| & | createUserInstance () |
| & | createRoleInstance () |
| & | 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 | |
| $_xml = null | |
| $_old_error_handler = null | |
| $_initParams = null | |
| $_fileOpened = false | |
Public Attributes inherited from UserManager | |
| $_initParams = null | |
| $_userRepository = null | |
| $_roleConfig = null | |
UserManagerXML is a UserManager that stores user and role information in an XML file.
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 31 of file class.UserManagerXML.php.
| UserManagerXML::openConnection | ( | $lock = true | ) |
Open the XML database.
| lock | True/False wether a lock is required or not |
Definition at line 43 of file class.UserManagerXML.php.
References WCMFException\throwEx().
Referenced by initialize(), and startTransaction().
Here is the call graph for this function:| UserManagerXML::closeConnection | ( | ) |
Close the XML database.
Definition at line 72 of file class.UserManagerXML.php.
Referenced by commitTransaction(), and rollbackTransaction().
| UserManagerXML::validateChanges | ( | ) |
Set Modification flag if no error occured.
Definition at line 83 of file class.UserManagerXML.php.
References WCMFException\throwEx().
Referenced by addUserToRoleImpl(), createRoleImpl(), createUserImpl(), removeRoleImpl(), removeUserFromRoleImpl(), removeUserImpl(), setRolePropertyImpl(), and setUserPropertyImpl().
Here is the call graph for this function:| UserManagerXML::startTransaction | ( | ) |
Definition at line 98 of file class.UserManagerXML.php.
References openConnection().
Here is the call graph for this function:| UserManagerXML::commitTransaction | ( | ) |
Definition at line 107 of file class.UserManagerXML.php.
References closeConnection().
Here is the call graph for this function:| UserManagerXML::rollbackTransaction | ( | ) |
Definition at line 116 of file class.UserManagerXML.php.
References closeConnection().
Here is the call graph for this function:| UserManagerXML::initialize | ( | $params | ) |
<!ELEMENT XmlDatabase (#PCDATA | nextID | users | roles)*> <!ELEMENT nextID (#PCDATA)> <!ELEMENT users (#PCDATA | user)*> <!ELEMENT user (#PCDATA | name | firstname | login | password | config | userroles)*> <!ATTLIST user id CDATA #IMPLIED> <!ELEMENT firstname (#PCDATA)> <!ELEMENT login (#PCDATA)> <!ELEMENT password (#PCDATA)> <!ELEMENT config (#PCDATA)> <!ELEMENT userroles (#PCDATA | roleid)*> <!ELEMENT roleid (#PCDATA)> <!ELEMENT roles (#PCDATA | role)*> <!ELEMENT role (#PCDATA | name)*> <!ATTLIST role id CDATA #IMPLIED> <!ELEMENT name (#PCDATA)>
Definition at line 154 of file class.UserManagerXML.php.
References createRoleInstance(), createUserInstance(), and openConnection().
Here is the call graph for this function:| & UserManagerXML::createUserInstance | ( | ) |
Create a user instance
Definition at line 208 of file class.UserManagerXML.php.
References UserManager\getUserClassName().
Referenced by initialize().
Here is the call graph for this function:| & UserManagerXML::createRoleInstance | ( | ) |
Create a role instance
Definition at line 217 of file class.UserManagerXML.php.
References UserManager\getRoleClassName().
Referenced by initialize().
Here is the call graph for this function:| & UserManagerXML::createUserImpl | ( | $name, | |
| $firstname, | |||
| $login, | |||
| $password | |||
| ) |
Definition at line 226 of file class.UserManagerXML.php.
References UserManager\getUserClassName(), and validateChanges().
Here is the call graph for this function:| UserManagerXML::removeUserImpl | ( | & | $user | ) |
Definition at line 269 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| UserManagerXML::setUserPropertyImpl | ( | & | $user, |
| $property, | |||
| $value | |||
| ) |
Definition at line 285 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| & UserManagerXML::createRoleImpl | ( | $name | ) |
Definition at line 300 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| UserManagerXML::removeRoleImpl | ( | & | $role | ) |
Definition at line 322 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| UserManagerXML::setRolePropertyImpl | ( | & | $role, |
| $property, | |||
| $value | |||
| ) |
Definition at line 345 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| UserManagerXML::addUserToRoleImpl | ( | & | $role, |
| & | $user | ||
| ) |
Definition at line 360 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| UserManagerXML::removeUserFromRoleImpl | ( | & | $role, |
| & | $user | ||
| ) |
Definition at line 377 of file class.UserManagerXML.php.
References validateChanges().
Here is the call graph for this function:| UserManagerXML::$_xml = null |
Definition at line 33 of file class.UserManagerXML.php.
| UserManagerXML::$_old_error_handler = null |
Definition at line 34 of file class.UserManagerXML.php.
| UserManagerXML::$_initParams = null |
Definition at line 36 of file class.UserManagerXML.php.
| UserManagerXML::$_fileOpened = false |
Definition at line 37 of file class.UserManagerXML.php.