Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler:

Public Member Functions

 __construct (GetItemLabels $useCase, LabelsSerializer $labelsSerializer, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 needsWriteAccess ()
 
 run (... $args)
 
 runUseCase (string $itemId)
 
 getParamSettings ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetItemLabelsResponse $useCaseResponse)
 
 newRedirectHttpResponse (ItemRedirect $e)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
GetItemLabels $useCase
 
LabelsSerializer $labelsSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::__construct ( GetItemLabels  $useCase,
LabelsSerializer  $labelsSerializer,
MiddlewareHandler  $middlewareHandler,
ResponseFactory  $responseFactory 
)

Member Function Documentation

◆ checkPreconditions()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::checkPreconditions ( )

Preconditions are checked via PreconditionMiddleware.

◆ factory()

static Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::factory ( )
static

◆ getParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::getParamSettings ( )

◆ needsWriteAccess()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::needsWriteAccess ( )

◆ newRedirectHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::newRedirectHttpResponse ( ItemRedirect  $e)
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::newSuccessHttpResponse ( GetItemLabelsResponse  $useCaseResponse)
private

◆ run()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::run (   $args)
Parameters
mixed...$args

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::runUseCase ( string  $itemId)

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::setEtagFromRevId ( Response  $response,
int  $revId 
)
private

Member Data Documentation

◆ $labelsSerializer

LabelsSerializer Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::$labelsSerializer
private

◆ $middlewareHandler

MiddlewareHandler Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::$middlewareHandler
private

◆ $responseFactory

ResponseFactory Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::$responseFactory
private

◆ $useCase

GetItemLabels Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::$useCase
private

◆ ITEM_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemLabelsRouteHandler::ITEM_ID_PATH_PARAM = 'item_id'
private

The documentation for this class was generated from the following file: