Class User Class for user information and management
| author | Timo A. Hummel <Timo.Hummel@4fb.de> |
|---|---|
| version | 1.0 |
| copyright | four for business 2003 |
User(string $table)
stringThe table to use as information source
deleteUserProperty(string $type, string $name)
stringtype Specifies the type (class, category etc) for the property to retrieve
stringname Specifies the name of the property to retrieve
getAvailableUsers($sort) : array
arrayArray with id and name entriesgetClientAdmins($client) : array
arrayArray with id and name entriesgetEffectiveUserPerms() : string
getField(string $field) : mixed
stringSpecifies the field to retrieve
mixedValue of the fieldgetGroupIDsByUserID($userid) : array
arrayids of groupsgetGroupsByUserID($userid) : array
arrayReal names of groupsgetRealname($userid, $bAllowFallbackOnUsername) : string
stringRealname if found, or emptry string if not.getRealnameByUserName($username) : string
stringRealname if found, or emptry string if not.getSystemAdmins(boolean $forceActive) : array
booleanforceActive Is forceActive true return only activ Sysadmins
arrayArray with id and name entriesgetUserProperties()
getUserPropertiesByType(string $sType, boolean $bGroup) : array
stringsType Specifies the type (class, category etc) for the property to retrieve
booleanbGroup Specifies if this function should recursively search in groups
arrayThe value of the retrieved propertygetUserProperty(string $type, string $name, boolean $group) : string
stringtype Specifies the type (class, category etc) for the property to retrieve
stringname Specifies the name of the property to retrieve
booleangroup Specifies if this function should recursively search in groups
stringThe value of the retrieved propertygetUsername($userid) : string
stringUsername if found, or emptry string if not.loadUserByUserID($userID) : bool
boolTrue if the load was successfulloadUserByUsername(string $username) : bool
stringSpecifies the username
boolTrue if the load was successfulsetField(string $field, string $value)
stringSpecifies the field to set
stringSpecifies the value to set
setUserProperty(string $type, string $name, string $value)
stringtype Specifies the type (class, category etc) for the property to retrieve
stringname Specifies the name of the property to retrieve
stringvalue Specifies the value to insert
store()
$db : object
| access | private |
|---|
$modifiedValues : array
| access | private |
|---|
$table : string
| access | private |
|---|
$values : array
| access | private |
|---|