[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/cache/ -> UserCache.php (summary)

Caches current user names and other info based on user IDs. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 151 lines (5 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

UserCache:: (6 methods):
  singleton()
  __construct()
  getProp()
  getUserName()
  doQuery()
  queryNeeded()


Class: UserCache  - X-Ref


singleton()   X-Ref

return: UserCache

__construct()   X-Ref
No description

getProp( $userId, $prop )   X-Ref
Get a property of a user based on their user ID

param: int $userId User ID
param: string $prop User property
return: mixed|bool The property or false if the user does not exist

getUserName( $userId, $ip )   X-Ref
Get the name of a user or return $ip if the user ID is 0

param: int $userId
param: string $ip
return: string

doQuery( array $userIds, $options = array()   X-Ref
Preloads user names for given list of users.

param: array $userIds List of user IDs
param: array $options Option flags; include 'userpage' and 'usertalk'
param: string $caller The calling method

queryNeeded( $uid, $type, array $options )   X-Ref
Check if a cache type is in $options and was not loaded for this user

param: int $uid User ID
param: string $type Cache type
param: array $options Requested cache types
return: bool



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1