Wikibase
MediaWiki Wikibase extension
|
A factory class for API helper objects. More...
Public Member Functions | |
__construct (EntityTitleLookup $titleLookup, ExceptionLocalizer $exceptionLocalizer, PropertyDataTypeLookup $dataTypeLookup, SiteLookup $siteLookup, SummaryFormatter $summaryFormatter, EntityRevisionLookup $entityRevisionLookup, MediawikiEditEntityFactory $editEntityFactory, SerializerFactory $serializerFactory, Serializer $entitySerializer, EntityIdParser $idParser, PermissionManager $permissionManager, EntityByLinkedTitleLookup $entityByLinkedTitleLookup=null, EntityFactory $entityFactory=null, EntityStore $entityStore=null) | |
getResultBuilder (ApiBase $api) | |
Returns a ResultBuilder wrapping the ApiResult of the given API module. | |
getErrorReporter (ApiBase $api) | |
Returns an ApiErrorReporter suitable for reporting errors from the given API module. | |
getEntitySavingHelper (ApiBase $apiBase) | |
Return an EntitySavingHelper object for use in Api modules. | |
getEntityLoadingHelper (ApiBase $apiBase) | |
Return an EntityLoadingHelper object for use in Api modules. | |
A factory class for API helper objects.
Wikibase\Repo\Api\ApiHelperFactory::__construct | ( | EntityTitleLookup | $titleLookup, |
ExceptionLocalizer | $exceptionLocalizer, | ||
PropertyDataTypeLookup | $dataTypeLookup, | ||
SiteLookup | $siteLookup, | ||
SummaryFormatter | $summaryFormatter, | ||
EntityRevisionLookup | $entityRevisionLookup, | ||
MediawikiEditEntityFactory | $editEntityFactory, | ||
SerializerFactory | $serializerFactory, | ||
Serializer | $entitySerializer, | ||
EntityIdParser | $idParser, | ||
PermissionManager | $permissionManager, | ||
EntityByLinkedTitleLookup | $entityByLinkedTitleLookup = null , |
||
EntityFactory | $entityFactory = null , |
||
EntityStore | $entityStore = null |
||
) |
EntityTitleLookup | $titleLookup | |
ExceptionLocalizer | $exceptionLocalizer | |
PropertyDataTypeLookup | $dataTypeLookup | |
SiteLookup | $siteLookup | |
SummaryFormatter | $summaryFormatter | |
EntityRevisionLookup | $entityRevisionLookup | |
MediawikiEditEntityFactory | $editEntityFactory | |
SerializerFactory | $serializerFactory | |
Serializer | $entitySerializer | |
EntityIdParser | $idParser | |
PermissionManager | $permissionManager | |
EntityByLinkedTitleLookup | null | $entityByLinkedTitleLookup | |
EntityFactory | null | $entityFactory | |
EntityStore | null | $entityStore |
Wikibase\Repo\Api\ApiHelperFactory::getEntityLoadingHelper | ( | ApiBase | $apiBase | ) |
Return an EntityLoadingHelper object for use in Api modules.
ApiBase | $apiBase |
Wikibase\Repo\Api\ApiHelperFactory::getEntitySavingHelper | ( | ApiBase | $apiBase | ) |
Return an EntitySavingHelper object for use in Api modules.
ApiBase | $apiBase |
Wikibase\Repo\Api\ApiHelperFactory::getErrorReporter | ( | ApiBase | $api | ) |
Returns an ApiErrorReporter suitable for reporting errors from the given API module.
ApiBase | $api |
Wikibase\Repo\Api\ApiHelperFactory::getResultBuilder | ( | ApiBase | $api | ) |
Returns a ResultBuilder wrapping the ApiResult of the given API module.
ApiBase | $api |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |