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