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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetPropertyLabelsResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
GetPropertyLabels $useCase
 
LabelsSerializer $labelsSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelsRouteHandler::newSuccessHttpResponse ( GetPropertyLabelsResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelsRouteHandler::runUseCase ( string $propertyId)

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $labelsSerializer

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

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

GetPropertyLabels Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelsRouteHandler::$useCase
private

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelsRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'
private

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