[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Caches user genders when needed to use correct namespace aliases. 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.
Author: | Niklas Laxström |
File Size: | 194 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
GenderCache:: (8 methods):
singleton()
__construct()
getDefault()
getGenderOf()
doLinkBatch()
doTitlesArray()
doQuery()
normalizeUsername()
Class: GenderCache - X-Ref
Caches user genders when needed to use correct namespace aliases.singleton() X-Ref |
return: GenderCache |
__construct() X-Ref |
No description |
getDefault() X-Ref |
Returns the default gender option in this wiki. return: string |
getGenderOf( $username, $caller = '' ) X-Ref |
Returns the gender for given username. param: string|User $username Username param: string $caller The calling method return: string |
doLinkBatch( $data, $caller = '' ) X-Ref |
Wrapper for doQuery that processes raw LinkBatch data. param: array $data param: string $caller |
doTitlesArray( $titles, $caller = '' ) X-Ref |
Wrapper for doQuery that processes a title or string array. param: array $titles Array of Title objects or strings param: string $caller The calling method |
doQuery( $users, $caller = '' ) X-Ref |
Preloads genders for given list of users. param: array|string $users Usernames param: string $caller The calling method |
normalizeUsername( $username ) X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |