37 if ( !Hooks::runner()->onUserArrayFromResult( $userArray,
$res ) ) {
38 return new ArrayIterator( [] );
53 $ids = array_map(
'intval', (array)$ids );
56 return new ArrayIterator( [] );
63 [
'user_id' => array_unique( $ids ) ],
82 $names = array_map(
'strval', (array)$names );
85 return new ArrayIterator( [] );
92 [
'user_name' => array_unique( $names ) ],
108 abstract public function key(): int;
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.