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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (SetItemLabelResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_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'
 
SetItemLabel $setItemLabel
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\SetItemLabelRouteHandler::__construct ( SetItemLabel $setItemLabel,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\SetItemLabelRouteHandler::newSuccessHttpResponse ( SetItemLabelResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $setItemLabel

SetItemLabel Wikibase\Repo\RestApi\RouteHandlers\SetItemLabelRouteHandler::$setItemLabel
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_ID_PATH_PARAM

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

◆ LABEL_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetItemLabelRouteHandler::LABEL_BODY_PARAM = 'label'
private

◆ LANGUAGE_CODE_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

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