Wikibase
MediaWiki Wikibase extension
|
API module for formatting a set of entity IDs. More...
Public Member Functions | |
__construct (ApiMain $mainModule, string $moduleName, EntityIdParser $entityIdParser, EntityIdFormatterFactory $entityIdFormatterFactory, ResultBuilder $resultBuilder, ApiErrorReporter $errorReporter, IBufferingStatsdDataFactory $dataFactory) | |
execute () | |
Static Public Member Functions | |
static | factory (ApiMain $apiMain, string $moduleName, IBufferingStatsdDataFactory $dataFactory, ApiHelperFactory $apiHelperFactory, EntityIdFormatterFactory $entityIdFormatterFactory, EntityIdParser $entityIdParser) |
Protected Member Functions | |
getAllowedParams () | |
getExamplesMessages () | |
Private Member Functions | |
getEntityIdsFromIdParam (array $params) | |
Static Private Member Functions | |
static | makeLinksAbsolute (string $html) |
Make the href="" attributes of <a> elements in an HTML snippet absolute. More... | |
Private Attributes | |
$entityIdParser | |
$entityIdFormatterFactory | |
$resultBuilder | |
$errorReporter | |
$dataFactory | |
API module for formatting a set of entity IDs.
Wikibase\Repo\Api\FormatEntities::__construct | ( | ApiMain | $mainModule, |
string | $moduleName, | ||
EntityIdParser | $entityIdParser, | ||
EntityIdFormatterFactory | $entityIdFormatterFactory, | ||
ResultBuilder | $resultBuilder, | ||
ApiErrorReporter | $errorReporter, | ||
IBufferingStatsdDataFactory | $dataFactory | ||
) |
Wikibase\Repo\Api\FormatEntities::execute | ( | ) |
|
static |
|
protected |
|
private |
array | $params |
|
protected |
|
staticprivate |
Make the href=""
attributes of <a>
elements in an HTML snippet absolute.
URLs are expanded using wfExpandUrl.
string | $html |
|
private |
|
private |
|
private |
|
private |
|
private |