Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField Class Reference

Class representing generic alias field. More...

+ Inheritance diagram for Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField:
+ Collaboration diagram for Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField:

Public Member Functions

 __construct (array $params)
 Can be used without label and placeholder - has some predefined values.
 
 filter ( $value, $alldata)
 
 validate ( $value, $alldata)
 
 getOOUI ( $value)
 
 getTableRow ( $value)
 
 getDiv ( $value)
 
 getRaw ( $value)
 
 getVForm ( $value)
 
 getInline ( $value)
 

Private Member Functions

 arrayToString ( $value)
 

Private Attributes

const DELIMITER = '|'
 
 $stringNormalizer
 
const DEFAULT_PARAMETERS
 

Detailed Description

Class representing generic alias field.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::__construct ( array $params)

Can be used without label and placeholder - has some predefined values.

  • Doesn't accept filter-callback parameter.
  • Doesn't accept type parameter.
See also
\HTMLForm There is detailed description of the allowed $params (named $info there).

Member Function Documentation

◆ arrayToString()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::arrayToString ( $value)
private
Parameters
array$value
Returns
string

◆ filter()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::filter ( $value,
$alldata )
Parameters
?string$value
array$alldata
Returns
array

◆ getDiv()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::getDiv ( $value)
Parameters
array$value
Returns
string

◆ getInline()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::getInline ( $value)
Parameters
array$value
Returns
string

◆ getOOUI()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::getOOUI ( $value)
Parameters
array$value
Returns
\OOUI\ActionFieldLayout|\OOUI\FieldLayout

◆ getRaw()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::getRaw ( $value)
Parameters
array$value
Returns
string

◆ getTableRow()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::getTableRow ( $value)
Parameters
array$value
Returns
string

◆ getVForm()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::getVForm ( $value)
Parameters
array$value
Returns
string

◆ validate()

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::validate ( $value,
$alldata )
Parameters
array$value
array$alldata
Returns
bool|\Message|string

Member Data Documentation

◆ $stringNormalizer

Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::$stringNormalizer
private

◆ DEFAULT_PARAMETERS

const Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::DEFAULT_PARAMETERS
private
Initial value:
= [
'placeholder-message' => 'wikibase-aliases-edit-placeholder',
'label-message' => 'wikibase-aliases-edit-label',
]

◆ DELIMITER

const Wikibase\Repo\Specials\HTMLForm\HTMLAliasesField::DELIMITER = '|'
private

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