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

Public Member Functions

 __construct (GetPropertyDescriptions $useCase, DescriptionsSerializer $descriptionsSerializer, 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 (GetPropertyDescriptionsResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
GetPropertyDescriptions $useCase
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 
DescriptionsSerializer $descriptionsSerializer
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionsRouteHandler::__construct ( GetPropertyDescriptions $useCase,
DescriptionsSerializer $descriptionsSerializer,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionsRouteHandler::newSuccessHttpResponse ( GetPropertyDescriptionsResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $descriptionsSerializer

DescriptionsSerializer Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionsRouteHandler::$descriptionsSerializer
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

GetPropertyDescriptions Wikibase\Repo\RestApi\RouteHandlers\GetPropertyDescriptionsRouteHandler::$useCase
private

◆ PROPERTY_ID_PATH_PARAM

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

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