MediaWiki  master
MediaWiki\Preferences\MultiUsernameFilter Class Reference
Inheritance diagram for MediaWiki\Preferences\MultiUsernameFilter:
Collaboration diagram for MediaWiki\Preferences\MultiUsernameFilter:

Public Member Functions

 __construct (CentralIdLookup $lookup=null, $authorityOrAudience=CentralIdLookup::AUDIENCE_PUBLIC)
 
 filterForForm ( $value)
 
Parameters
mixed$value
Returns
mixed
More...
 
 filterFromForm ( $names)
 
Parameters
mixed$value
Returns
mixed
More...
 

Static Public Member Functions

static splitIds ( $str)
 Splits a newline separated list of user ids into an array. More...
 

Private Member Functions

 getLookup ()
 

Private Attributes

Authority int $authorityOrAudience
 User querying central usernames or one of the audience constants. More...
 
CentralIdLookup null $lookup
 

Detailed Description

Definition at line 27 of file MultiUsernameFilter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Preferences\MultiUsernameFilter::__construct ( CentralIdLookup  $lookup = null,
  $authorityOrAudience = CentralIdLookup::AUDIENCE_PUBLIC 
)
Parameters
CentralIdLookup | null$lookup
Authority | int$authorityOrAudience

Definition at line 39 of file MultiUsernameFilter.php.

References MediaWiki\Preferences\MultiUsernameFilter\$authorityOrAudience, and MediaWiki\Preferences\MultiUsernameFilter\$lookup.

Member Function Documentation

◆ filterForForm()

MediaWiki\Preferences\MultiUsernameFilter::filterForForm (   $value)

◆ filterFromForm()

MediaWiki\Preferences\MultiUsernameFilter::filterFromForm (   $names)

Parameters
mixed$value
Returns
mixed

Implements MediaWiki\Preferences\Filter.

Definition at line 50 of file MultiUsernameFilter.php.

References MediaWiki\Preferences\MultiUsernameFilter\getLookup().

◆ getLookup()

◆ splitIds()

static MediaWiki\Preferences\MultiUsernameFilter::splitIds (   $str)
static

Splits a newline separated list of user ids into an array.

Parameters
string$str
Returns
int[]

Definition at line 78 of file MultiUsernameFilter.php.

Referenced by MediaWiki\Preferences\MultiUsernameFilter\filterForForm().

Member Data Documentation

◆ $authorityOrAudience

Authority int MediaWiki\Preferences\MultiUsernameFilter::$authorityOrAudience
private

User querying central usernames or one of the audience constants.

Definition at line 33 of file MultiUsernameFilter.php.

Referenced by MediaWiki\Preferences\MultiUsernameFilter\__construct().

◆ $lookup

CentralIdLookup null MediaWiki\Preferences\MultiUsernameFilter::$lookup
private

The documentation for this class was generated from the following file: