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

Class representing generic form field referencing item by its ID. More...

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

Public Member Functions

 __construct (array $params, EntityLookup $entityLookup=null)
 
 validate ( $value, $alldata)
 

Private Attributes

 $entityLookup
 

Detailed Description

Class representing generic form field referencing item by its ID.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\HTMLForm\HTMLItemReferenceField::__construct ( array $params,
EntityLookup $entityLookup = null )
  • Can be used without placeholder - has some predefined value.
  • Doesn't accept type parameter.
See also
\HTMLForm There is detailed description of the allowed $params (named $info there).

Member Function Documentation

◆ validate()

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

Member Data Documentation

◆ $entityLookup

Wikibase\Repo\Specials\HTMLForm\HTMLItemReferenceField::$entityLookup
private

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