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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetPropertyDescriptionWithFallbackResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 
 newLanguageFallbackResponse (string $propertyId, string $fallbackLanguageCode)
 

Private Attributes

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newLanguageFallbackResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionWithFallbackRouteHandler::newLanguageFallbackResponse ( string $propertyId,
string $fallbackLanguageCode )
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionWithFallbackRouteHandler::newSuccessHttpResponse ( GetPropertyDescriptionWithFallbackResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

GetPropertyDescriptionWithFallback Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionWithFallbackRouteHandler::$useCase
private

◆ LANGUAGE_CODE_PATH_PARAM

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

◆ PROPERTY_ID_PATH_PARAM

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

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