wCMF
3.6
|
Public Member Functions | |
getUserData ($login, $password) | |
Public Member Functions inherited from AuthUser | |
login ($login, $password, $isPasswordEncrypted=false) | |
addPolicies ($policies) | |
authorize ($actionKey) | |
matchRoles ($val) | |
parsePolicy ($val) | |
setDefaultPolicy ($val) | |
getLoginTime () | |
toString () | |
getType () | |
setLogin ($login) | |
getLogin () | |
setPassword ($password) | |
getPassword () | |
setName ($name) | |
getName () | |
setFirstname ($firstname) | |
getFirstname () | |
setConfig ($config) | |
getConfig () | |
addRole ($rolename) | |
removeRole ($rolename) | |
hasRole ($rolename) | |
getRoles () | |
getClassDefinitionFiles () | |
loadFromSession () | |
Public Member Functions inherited from User | |
User ($oid=null, $type='User') | |
& | getUser ($login, $password) |
getUserId () | |
setLogin ($login) | |
getLogin () | |
setPassword ($password) | |
getPassword () | |
setName ($name) | |
getName () | |
setFirstname ($firstname) | |
getFirstname () | |
setConfig ($config) | |
getConfig () | |
addRole ($rolename, $commit=false) | |
removeRole ($rolename, $commit=false) | |
hasRole ($rolename) | |
getRoles () | |
& | getRoleByName ($rolename) |
resetRoleCache () | |
Public Member Functions inherited from Node | |
Node ($type, $oid=null) | |
getNumChildren ($memOnly=true, $type=null) | |
addChild (&$child, $addtype=ADDCHILD_BACK) | |
updateParent (&$parent, $recursive=true) | |
deleteChild ($childOID, $reallyDelete=false) | |
loadChildren ($type, $buildDepth=BUILDDEPTH_SINGLE, $forceUpdate=false) | |
& | getFirstChild ($type, $values, $properties, $useRegExp=true) |
getChildren () | |
getChildrenEx ($oid, $type, $values, $properties, $useRegExp=true) | |
sortChildren ($criteria, $recursive=false, $changeSortkey=false, $sortFunction='') | |
sort (&$nodeList, $criteria, $recursive=false, $changeSortkey=false, $sortFunction='') | |
filter (&$nodeList, $oid, $type, $values, $properties, $useRegExp=true) | |
getNextSibling () | |
getPreviousSibling () | |
loadParents ($type, $forceUpdate=false) | |
getNumParents ($memOnly=true, $type=null) | |
& | getParent () |
& | getFirstParent ($type, $values, $properties, $useRegExp=true) |
& | getParents () |
getParentsEx ($oid, $type, $values, $properties, $useRegExp=true) | |
getDepth () | |
getPath () | |
acceptVisitor (&$visitor) | |
setState ($state, $recursive=true) | |
removeDuplicateOidsWithoutRole ($oids) | |
getDisplayValue ($useDisplayType=false) | |
getDisplayValues ($useDisplayType=false) | |
toString ($verbose=false) | |
Public Member Functions inherited from PersistentObject | |
PersistentObject ($type, $oid=null) | |
getType () | |
setType ($type) | |
getBaseType () | |
getOID () | |
getBaseOID () | |
setOID ($oid) | |
getDBID () | |
setDBID ($id) | |
& | getMapper () |
& | getDataConverter () |
save () | |
delete ($recursive=true) | |
getState () | |
setState ($state, $recursive=true) | |
setImmutable () | |
getLock () | |
& | duplicate () |
copyValues (&$object, $dataTypes=array(), $copyPkValues=true) | |
copyValueIntern (&$node, $valueName, $dataType, &$targetNode, $dataTypes, $valuesToIgnore) | |
clearValues ($dataTypes=array()) | |
clearValueIntern (&$node, $valueName, $dataType, $dataTypes) | |
updateOID () | |
afterCreate () | |
beforeInsert () | |
afterInsert () | |
afterLoad () | |
beforeUpdate () | |
afterUpdate () | |
beforeDelete () | |
afterDelete () | |
hasValue ($name, $type=null) | |
getValue ($name, $type=null) | |
removeValue ($name, $type=null) | |
getUnconvertedValue ($name, $type=null) | |
getConvertedValue ($name, $type=null) | |
getValueTypes ($name) | |
validateValues () | |
validateValueIntern (&$node, $valueName, $dataType, &$errorMsg) | |
validateValue ($name, $value, $type=null) | |
validateValueAgainstRestrictions ($name, $value, $type=null) | |
setValue ($name, $value, $type=null, $forceSet=false) | |
getValueProperties ($name, $type=null) | |
setValueProperties ($name, $properties, $type=null) | |
getValueProperty ($name, $property, $type=null) | |
setValueProperty ($name, $property, $value, $type=null) | |
getValueNames ($type=null) | |
getDataTypes () | |
getProperty ($name) | |
setProperty ($name, $value) | |
getPropertyNames () | |
addChangeListener (&$listener) | |
removeChangeListener (&$listener) | |
propagateValueChange ($name, $type, $oldValue, $newValue) | |
propagatePropertyChange ($name, $oldValue, $newValue) | |
propagateStateChange ($oldValue, $newValue) | |
getObjectDisplayName () | |
getObjectDescription () | |
getDisplayValue () | |
getValueDisplayName ($name, $type=null) | |
getValueDescription ($name, $type=null) | |
toString ($verbose=false) | |
isIndexInSearch () | |
Public Member Functions inherited from Storable | |
getClassDefinitionFiles () | |
loadFromSession () | |
saveToSession () | |
Additional Inherited Members | |
Public Attributes inherited from AuthUser | |
$_login_time = "" | |
$_policies = array() | |
$_defaulPolicy = true | |
$_user = null | |
Public Attributes inherited from User | |
$_cachedRoles = array() | |
$_hasOwnRolesLoaded = false | |
Public Attributes inherited from Node | |
$_children = array() | |
$_parents = array() | |
$_depth = -1 | |
$_path = '' | |
Public Attributes inherited from PersistentObject | |
$_oid = null | |
$_type = '' | |
$_data = array() | |
$_properties = array() | |
$_state = STATE_CLEAN | |
$_isImmutable = false | |
$_changeListeners = array() | |
AuthUser that gets configuration from an 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.
Definition at line 32 of file class.AuthUserRDB.php.
AuthUserRDB::getUserData | ( | $login, | |
$password | |||
) |
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 67 of file class.AuthUserRDB.php.
References InifileParser\getInstance(), and WCMFException\throwEx().