|
MediaWiki
REL1_20
|
Public Member Functions | |
| doQuery (array $userIds, $options=array(), $caller= '') | |
| Preloads user names for given list of users. | |
| getProp ($userId, $prop) | |
| Get a property of a user based on their user ID. | |
Static Public Member Functions | |
| static | singleton () |
Protected Member Functions | |
| __construct () | |
| queryNeeded ($uid, $type, array $options) | |
| Check if a cache type is in $options and was not loaded for this user. | |
Protected Attributes | |
| $cache = array() | |
| $typesCached = array() | |
Definition at line 27 of file UserCache.php.
| UserCache::__construct | ( | ) | [protected] |
Definition at line 42 of file UserCache.php.
| UserCache::doQuery | ( | array $ | userIds, |
| $ | options = array(), |
||
| $ | caller = '' |
||
| ) |
Preloads user names for given list of users.
| $userIds | Array List of user IDs |
| $options | Array Option flags; include 'userpage' and 'usertalk' |
| $caller | String: the calling method |
Definition at line 67 of file UserCache.php.
References $comment, $dbr, $lb, $options, $res, queryNeeded(), wfGetDB(), wfProfileIn(), and wfProfileOut().
Referenced by getProp().
| UserCache::getProp | ( | $ | userId, |
| $ | prop | ||
| ) |
| UserCache::queryNeeded | ( | $ | uid, |
| $ | type, | ||
| array $ | options | ||
| ) | [protected] |
Check if a cache type is in $options and was not loaded for this user.
| $uid | integer user ID |
| $type | string Cache type |
| $options | Array Requested cache types |
Definition at line 131 of file UserCache.php.
Referenced by doQuery().
| static UserCache::singleton | ( | ) | [static] |
Definition at line 34 of file UserCache.php.
Referenced by ImageListPager\doBatchLookups().
UserCache::$cache = array() [protected] |
Definition at line 28 of file UserCache.php.
UserCache::$typesCached = array() [protected] |
Definition at line 29 of file UserCache.php.