Midcom core user

From MidgardWiki

Jump to: navigation, search

This class basically encapsulates a MgdSchema based Midgard Person object. It cannot be used to manipulate user data.

Attributes

guid - string, the user's GUID
id - string, usually in the form user:guid
name - string, composed of the database fields firstname and lastname
scope - integer
username - string, username

Methods

midcom_core_user midcom_core_user ([mixed $id = null])
get_first_login - returns the timestamp of the first login of the given user
get_last_login - returns the timestamp of the last login of the given user
Array get_per_class_privileges (object &$object)
Array get_privileges ()
get_storage - returns a midcom_db_person object of the user in question
is_in_group - expects a midcom_core_group object or a string identifier (usually in the form group:GUID or alternatively the name of the Group) of the Group in question and returns true or false
string is_online ()
Array list_all_memberships ()
list_memberships () - returns an array of all Groups the user is a direct member of
bool update_password (string $new, [bool $crypted = true])
bool update_username (string $new, [mixed $crypted = true])
Array _get_privileges ()
bool _load (mixed $id)
void _load_all_groups ()
void _load_direct_groups ()
void _load_privileges ()
void _merge_privileges (Array $privileges)

Weblinks

http://www.midgard-project.org/api-docs/midcom/dev/midcom/midcom_core_user.html

Personal tools