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

Public Member Functions

 __construct (CentralIdLookup $lookup=null, $userOrAudience=CentralIdLookup::AUDIENCE_PUBLIC)
 
 filterForForm ( $value)
 
Parameters
mixed$value
Returns
mixed

 
 filterFromForm ( $names)
 
Parameters
mixed$value
Returns
mixed

 

Static Public Member Functions

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

Private Member Functions

 getLookup ()
 

Private Attributes

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

Detailed Description

Definition at line 25 of file MultiUsernameFilter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Preferences\MultiUsernameFilter::__construct ( CentralIdLookup  $lookup = null,
  $userOrAudience = CentralIdLookup::AUDIENCE_PUBLIC 
)

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 47 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 75 of file MultiUsernameFilter.php.

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

Member Data Documentation

◆ $lookup

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

◆ $userOrAudience

CentralIdLookup int MediaWiki\Preferences\MultiUsernameFilter::$userOrAudience
private

User querying central usernames or one of the audience constants.

Definition at line 31 of file MultiUsernameFilter.php.

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


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