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.