32 if ( !Hooks::runner()->onUserArrayFromResult( $userArray,
$res ) ) {
43 $ids = array_map(
'intval', (array)$ids );
46 return new ArrayIterator( [] );
53 [
'user_id' => array_unique( $ids ) ],
67 $names = array_map(
'strval', (array)$names );
70 return new ArrayIterator( [] );
77 [
'user_name' => array_unique( $names ) ],
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
static newFromResult( $res)
static newFromNames( $names)
static getQueryInfo()
Return the tables, fields, and join conditions to be selected to create a new user object.