boolean add(
User
&$Obj
)
|
|
Overload parent's function to also maintain the login cache.
Parameters:
Redefinition of:
- DataObjectCache::add()
- Add a dataobject to the cache
void clear(
[
$keep_shadow = false]
)
|
|
Clear our caches.
Parameters:
Redefinition of:
- DataObjectCache::clear()
- Clear the cache **extensively**
void get_blog_member_option_list(
integer
$blog_ID, [integer
$default = 0], [boolean
$allow_none = false], [boolean
$always_load_default = false]
)
|
|
Loads cache with blog memeber, then display form option list with cache contents
Optionally, also adds default choice to the cache.
Parameters:
|
integer |
$blog_ID: |
blog ID or 0 for ALL |
|
integer |
$default: |
selected ID |
|
boolean |
$allow_none: |
provide a choice for "none" with ID 0 |
|
boolean |
$always_load_default: |
make sur the current default user is part of the choices |
API Tags:
false|User &get_by_login(
$login
)
|
|
Get a user object by login.
Does not halt on error.
Parameters:
API Tags:
| Return: | Reference to the user object or false if not found |
false|User &get_by_loginAndPwd(
string
$login, string
$pass, [boolean
$pass_is_md5 = true]
)
|
|
Get a user object by login, only if password matches.
Parameters:
|
string |
$login: |
Login |
|
string |
$pass: |
Password |
|
boolean |
$pass_is_md5: |
Password is MD5()'ed |
void load_blogmembers(
integer
$blog_ID
)
|
|
Load members of a given blog
Parameters:
|
integer |
$blog_ID: |
blog ID to load members for |
Information Tags:
| Todo: | make a UNION query when we upgrade to MySQL 4 |