Class: UserCache
Source Location: /blogs/inc/users/model/_usercache.class.php
Class UserCache
Class Overview
|
Blog Cache Class Located in /blogs/inc/users/model/_usercache.class.php [line 43] DataObjectCache | --UserCacheAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
[ Top ]
Property Summary
Method Summary
| UserCache | UserCache() | Constructor |
| boolean | add() | Overload parent's function to also maintain the login cache. |
| void | clear() | Clear our caches. |
| void | get_blog_member_option_list() | Loads cache with blog memeber, then display form option list with cache contents |
| false|User | &get_by_login() | Get a user object by login. |
| false|User | &get_by_loginAndPwd() | Get a user object by login, only if password matches. |
| void | load_blogmembers() | Load members of a given blog |
| void | remove_by_ID() | Handle our login cache. |
[ Top ]
Properties
Methods
add [line 148]
|
Overload parent's function to also maintain the login cache.
Parameters:| User | &$Obj: |
Redefinition of:
- DataObjectCache::add()
- Add a dataobject to the cache
[ Top ]
clear [line 247]
|
Clear our caches.
Parameters:| $keep_shadow: |
Redefinition of:
- DataObjectCache::clear()
- Clear the cache **extensively**
[ Top ]
get_blog_member_option_list [line 222]
|
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:
| Usedby: | Item::get_assigned_user_options() |
[ Top ]
get_by_login [line 86]
|
Get a user object by login.
Does not halt on error.
Parameters:| $login: |
API Tags:
| Return: | Reference to the user object or false if not found |
[ Top ]
get_by_loginAndPwd [line 121]
|
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 |
[ Top ]
load_blogmembers [line 167]
|
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 |
[ Top ]
remove_by_ID [line 258]
|
Handle our login cache.
Parameters:| $reg_ID: |
Redefinition of:
- DataObjectCache::remove_by_ID()
- Remove an object from cache by ID
[ Top ]
