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. | |
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 | ( | 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 | |
TitleFactory | $titleFactory | |
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 |
|
private |
|
private |