Class representing a system user
package |
Framework |
---|---|
subpackage |
Core |
__construct(int $id = null, array $sql_arr = null)
int
User id
array
SQL result set
get_username(string $part = null) : string
string
Username part (empty or 'local' or 'domain', 'mail')
string
Full user name or its part
get_prefs() : array
array
Hash array with prefs
save_prefs(array $a_user_prefs) : boolean
array
User prefs to save
boolean
True on success, False on failure
get_hash()
get_identity(int $id = null) : array
int
Identity ID. If empty, the default identity is returned
array
Hash array with all cols of the identity record
list_identities(string $sql_add = '', bool $formatted = false) : array
string
Optional WHERE clauses
bool
Format identity email and name
array
List of identities
update_identity(int $iid, array $data) : boolean
int
Identity ID
array
Hash array with col->value pairs to save
boolean
True if saved successfully, false if nothing changed
insert_identity(array $data) : int
array
Hash array with col->value pairs to save
int
The inserted identity ID or false on error
delete_identity(int $iid) : boolean
int
Identity ID
boolean
True if deleted successfully, false if nothing changed
set_default(int $iid)
int
The identity ID
touch()
reset()
query(string $user, string $host) : \rcube_user
string
IMAP user name
string
IMAP host name
\rcube_user
New user instance
create(string $user, string $host) : \rcube_user
email2user(string $email) : string
string
E-mail address to resolve
string
Resolved IMAP username
user2email(string $user, boolean $first = true, boolean $extended = false) : mixed
string
User name
boolean
If true returns first found entry
boolean
If true returns email as array (email and name for identity)
mixed
Resolved e-mail address string or array of strings
list_searches(int $type) : array
int
Search type
array
List of saved searches indexed by search ID
get_search(int $id) : array
int
Row identifier
array
Data
delete_search(int $sid) : boolean
int
Search ID
boolean
True if deleted successfully, false if nothing changed
insert_search(array $data) : int
array
Hash array with col->value pairs to save
int
The inserted search ID or false on error
SEARCH_ADDRESSBOOK
SEARCH_MAIL
ID :
data :
language :
identities : array
var | |
---|---|
array