MediaWiki fundraising/REL1_35
SearchResultTrait.php File Reference

Go to the source code of this file.

Functions

 getExtensionData ()
 Get the extension data as: augmentor name => data.
 
 setExtensionData ( $extensionData)
 Set extension data for this result.
 

Variables

trait SearchResultTrait
 Trait for SearchResult subclasses to share non-obvious behaviors or methods that rarely specialized.
 

Function Documentation

◆ getExtensionData()

getExtensionData ( )

Get the extension data as: augmentor name => data.

Returns
array[]

Definition at line 19 of file SearchResultTrait.php.

◆ setExtensionData()

setExtensionData ( $extensionData)

Set extension data for this result.

The data is: augmentor name => data

Parameters
Closure | array$extensionDataTakes no arguments, returns either array of extension data or null.

Definition at line 34 of file SearchResultTrait.php.

References $type, and wfDeprecated().

Variable Documentation

◆ SearchResultTrait

trait SearchResultTrait
Initial value:
{
protected Closure|null $extensionData

Trait for SearchResult subclasses to share non-obvious behaviors or methods that rarely specialized.

Definition at line 7 of file SearchResultTrait.php.