32 if ( !Hooks::run(
'UserArrayFromResult', [ &$userArray,
$res ] ) ) {
35 if ( $userArray ===
null ) {
46 $ids = array_map(
'intval', (
array)$ids );
49 return new ArrayIterator( [] );
56 [
'user_id' => array_unique( $ids ) ],
70 $names = array_map(
'strval', (
array)$names );
73 return new ArrayIterator( [] );
80 [
'user_name' => array_unique( $names ) ],
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
static newFromResult( $res)
static newFromNames( $names)
static newFromResult_internal( $res)
static getQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new user object.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))