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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetItemAliasesInLanguageResponse $useCaseResponse)
 
 newRedirectHttpResponse (ItemRedirect $e, string $languageCode)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
GetItemAliasesInLanguage $useCase
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newRedirectHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemAliasesInLanguageRouteHandler::newRedirectHttpResponse ( ItemRedirect $e,
string $languageCode )
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemAliasesInLanguageRouteHandler::newSuccessHttpResponse ( GetItemAliasesInLanguageResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetItemAliasesInLanguageRouteHandler::runUseCase ( string $itemId,
string $languageCode )

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

GetItemAliasesInLanguage Wikibase\Repo\RestApi\RouteHandlers\GetItemAliasesInLanguageRouteHandler::$useCase
private

◆ ITEM_ID_PATH_PARAM

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

◆ LANGUAGE_CODE_PATH_PARAM

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

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