CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Simple profile repository backed by a PHP array. More...
Public Member Functions | |
repositoryType () | |
The repository type. | |
repositoryName () | |
The repository name. | |
getProfile ( $name) | |
Load a profile named $name. | |
hasProfile ( $name) | |
Check if a profile named $name exists in this repository. | |
listExposedProfiles () | |
Static Public Member Functions | |
static | fromArray ( $repoType, $repoName, array $profiles) |
static | lazyLoaded ( $repoType, $repoName, callable $loader) |
Lazy loaded array using a callback. | |
static | fromFile ( $repoType, $repoName, $phpFile) |
Lazy loaded array by including a php file. | |
Simple profile repository backed by a PHP array.
|
static |
string | $repoType | |
string | $repoName | |
array | $profiles |
|
static |
Lazy loaded array by including a php file.
NOTE: $phpFile will be loaded using PHP's require function
string | $repoType | |
string | $repoName | |
string | $phpFile |
CirrusSearch\Profile\ArrayProfileRepository::getProfile | ( | $name | ) |
Load a profile named $name.
string | $name |
Implements CirrusSearch\Profile\SearchProfileRepository.
CirrusSearch\Profile\ArrayProfileRepository::hasProfile | ( | $name | ) |
Check if a profile named $name exists in this repository.
string | $name |
Implements CirrusSearch\Profile\SearchProfileRepository.
|
static |
Lazy loaded array using a callback.
string | $repoType | |
string | $repoName | |
callable | $loader |
CirrusSearch\Profile\ArrayProfileRepository::listExposedProfiles | ( | ) |
Implements CirrusSearch\Profile\SearchProfileRepository.
CirrusSearch\Profile\ArrayProfileRepository::repositoryName | ( | ) |
CirrusSearch\Profile\ArrayProfileRepository::repositoryType | ( | ) |