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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessResponse (GetPropertyLabelResponse $useCaseResponse)
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
GetPropertyLabel $useCase
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelRouteHandler::__construct ( GetPropertyLabel $useCase,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelRouteHandler::newSuccessResponse ( GetPropertyLabelResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelRouteHandler::runUseCase ( string $propertyId,
string $languageCode )

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

GetPropertyLabel Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelRouteHandler::$useCase
private

◆ LANGUAGE_CODE_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetPropertyLabelRouteHandler::LANGUAGE_CODE_PATH_PARAM = 'language_code'
private

◆ PROPERTY_ID_PATH_PARAM

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

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