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

Public Member Functions

 __construct (SetPropertyLabel $setPropertyLabel, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $propertyId, string $languageCode)
 
 getParamSettings ()
 
 getBodyValidator ( $contentType)
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Public Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
const LABEL_BODY_PARAM = 'label'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse (SetPropertyLabelResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

SetPropertyLabel $setPropertyLabel
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::__construct ( SetPropertyLabel $setPropertyLabel,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::getBodyValidator ( $contentType)

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::newSuccessHttpResponse ( SetPropertyLabelResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $setPropertyLabel

SetPropertyLabel Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::$setPropertyLabel
private

◆ BOT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::BOT_BODY_PARAM = 'bot'

◆ COMMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::COMMENT_BODY_PARAM = 'comment'

◆ LABEL_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::LABEL_BODY_PARAM = 'label'

◆ LANGUAGE_CODE_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::LANGUAGE_CODE_PATH_PARAM = 'language_code'

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'

◆ TAGS_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyLabelRouteHandler::TAGS_BODY_PARAM = 'tags'

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