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

Public Member Functions

 __construct (PatchPropertyLabels $useCase, LabelsSerializer $serializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $propertyId)
 
 validate (Validator $restValidator)
 
 getSupportedRequestTypes ()
 
 getParamSettings ()
 
 getBodyParamSettings ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (PatchPropertyLabelsResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const PATCH_BODY_PARAM = 'patch'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
PatchPropertyLabels $useCase
 
LabelsSerializer $serializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::__construct ( PatchPropertyLabels $useCase,
LabelsSerializer $serializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::getBodyParamSettings ( )

◆ getParamSettings()

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

◆ getSupportedRequestTypes()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::getSupportedRequestTypes ( )

◆ getUsername()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::getUsername ( )
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::newSuccessHttpResponse ( PatchPropertyLabelsResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ validate()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::validate ( Validator $restValidator)

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $serializer

LabelsSerializer Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::$serializer
private

◆ $useCase

PatchPropertyLabels Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::BOT_BODY_PARAM = 'bot'
private

◆ COMMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::COMMENT_BODY_PARAM = 'comment'
private

◆ PATCH_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::PATCH_BODY_PARAM = 'patch'
private

◆ PROPERTY_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyLabelsRouteHandler::TAGS_BODY_PARAM = 'tags'
private

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