User()
deleteUserProperty()
getAvailableUsers()
getClientAdmins()
getEffectiveUserPerms()
getField()
getGroupIDsByUserID()
getGroupsByUserID()
getRealname()
getRealnameByUserName()
getSystemAdmins()
getUserProperties()
getUserPropertiesByType()
getUserProperty()
getUsername()
loadUserByUserID()
loadUserByUsername()
setField()
setUserProperty()
store()
$db
$modifiedValues
$table
$values
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)
string
The table to use as information source
deleteUserProperty(string $type, string $name)
string
type Specifies the type (class, category etc) for the property to retrieve
string
name Specifies the name of the property to retrieve
getAvailableUsers(string $sort) : array
string
SQL sort part
array
Array with id and name entriesgetClientAdmins(int $client) : array
int
array
Array with id and name entriesgetEffectiveUserPerms() : string
getField(string $field) : mixed
string
Specifies the field to retrieve
mixed
Value of the fieldgetGroupIDsByUserID(int $userid) : array
int
array
Ids of groupsgetGroupsByUserID(int $userid) : array
int
array
Real names of groupsgetRealname(int $userid, bool $bAllowFallbackOnUsername) : string
int
bool
string
Realname if found, or emptry string if not.getRealnameByUserName(string $username) : string
string
string
Realname if found, or emptry string if not.getSystemAdmins(boolean $forceActive) : array
boolean
Is forceActive true return only activ Sysadmins
array
Array with id and name entriesgetUserProperties() : array
array
Assoziative properties list as follows: - $arr[iduserprop][name] - $arr[iduserprop][type] - $arr[iduserprop][value]getUserPropertiesByType(string $sType, boolean $bGroup) : array
string
sType Specifies the type (class, category etc) for the property to retrieve
boolean
bGroup Specifies if this function should recursively search in groups
array
The value of the retrieved propertygetUserProperty(string $type, string $name, boolean $group) : string
string
type Specifies the type (class, category etc) for the property to retrieve
string
name Specifies the name of the property to retrieve
boolean
group Specifies if this function should recursively search in groups
string
The value of the retrieved propertygetUsername(int $userid) : string
int
string
Username if found, or emptry string if not.loadUserByUserID($userID) : bool
bool
True if the load was successfulloadUserByUsername(string $username) : bool
string
Specifies the username
bool
True if the load was successfulsetField(string $field, string $value)
string
Specifies the field to set
string
Specifies the value to set
setUserProperty(string $type, string $name, string $value)
string
type Specifies the type (class, category etc) for the property to retrieve
string
name Specifies the name of the property to retrieve
string
value Specifies the value to insert
store() : bool
bool
$db : object
access | private |
---|
$modifiedValues : array
access | private |
---|
$table : string
access | private |
---|
$values : array
access | private |
---|