Class Kimono_User

Description

user class for keeping track of user variables, group permissions etc.

Located in /include/user.php (line 12)


	
			
Method Summary
 void AuthGroup ()
 void CheckPermission (mixed $object_id, mixed $value, mixed $type)
 void Email ([mixed $email = ''])
 void Enabled ([mixed $enabled = '0'])
 void Group (mixed $group)
 void GroupName ([mixed $group_name = ''])
 void Id (mixed $id)
 void Info ([mixed $info = ''])
 void IsPermitted (mixed $object_id, [mixed $value = KIMONO_PERM_READ], [mixed $type = KIMONO_OBJECT_TYPE_SYSTEM], [mixed $parent_id = FALSE], [mixed $grandparent_id = FALSE], [mixed $greatgrandparent_id = FALSE])
 void Language ([mixed $language = ''])
 void Load (mixed $username, mixed $password, mixed $organisation, [mixed $bypass_security = FALSE])
 void Name ([mixed $name = ''])
 void Organisation (mixed $id)
 void OrganisationName ([mixed $name = ''])
 void Password ([mixed $password = ''])
 void Permissions ([mixed $permissions = FALSE])
 void Save ()
 void Theme ([mixed $theme = ''])
 void UpdateLoginRetries (mixed $username)
Methods
AuthGroup (line 131)
void AuthGroup ()
CheckPermission (line 333)
void CheckPermission (mixed $object_id, mixed $value, mixed $type)
ClearLoginRetries (line 125)

clear login retries counter and time

void ClearLoginRetries ()
Email (line 209)
void Email ([mixed $email = ''])
Enabled (line 233)
void Enabled ([mixed $enabled = '0'])
GetLastPermission (line 326)
void GetLastPermission ()
Group (line 249)
void Group (mixed $group)
GroupName (line 257)
void GroupName ([mixed $group_name = ''])
Id (line 193)
void Id (mixed $id)
Info (line 241)
void Info ([mixed $info = ''])
IsPermitted (line 290)

check permissions on an object

  • todo: fix permissions logging
void IsPermitted (mixed $object_id, [mixed $value = KIMONO_PERM_READ], [mixed $type = KIMONO_OBJECT_TYPE_SYSTEM], [mixed $parent_id = FALSE], [mixed $grandparent_id = FALSE], [mixed $greatgrandparent_id = FALSE])
Language (line 352)
void Language ([mixed $language = ''])
Load (line 37)

$bypass_security is for admins loading users for editing without knowing their passwd

void Load (mixed $username, mixed $password, mixed $organisation, [mixed $bypass_security = FALSE])
Name (line 201)
void Name ([mixed $name = ''])
Organisation (line 217)
void Organisation (mixed $id)
OrganisationName (line 225)
void OrganisationName ([mixed $name = ''])
Password (line 374)

set password, check for min length first

void Password ([mixed $password = ''])
Permissions (line 268)

load or get permissions

void Permissions ([mixed $permissions = FALSE])
Save (line 108)
void Save ()
Theme (line 363)

interface theme (which CSS file to use)

void Theme ([mixed $theme = ''])
UpdateLoginRetries (line 116)

count this as a failed login attempt

void UpdateLoginRetries (mixed $username)

Documentation generated on Fri, 8 Apr 2005 18:27:46 +0200 by phpDocumentor 1.3.0RC3