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

Public Member Functions

 __construct (RemoveItemLabel $removeItemLabel, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 run (... $args)
 
 runUseCase (string $itemId, string $languageCode)
 
 validate (Validator $restValidator)
 
 getParamSettings ()
 
 getBodyParamSettings ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse ()
 
 getUsername ()
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
const TAGS_PARAM_DEFAULT = []
 
const BOT_PARAM_DEFAULT = false
 
const COMMENT_PARAM_DEFAULT = null
 
RemoveItemLabel $removeItemLabel
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\RemoveItemLabelRouteHandler::__construct ( RemoveItemLabel $removeItemLabel,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\RemoveItemLabelRouteHandler::newSuccessHttpResponse ( )
private

◆ run()

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

◆ runUseCase()

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

◆ validate()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $removeItemLabel

RemoveItemLabel Wikibase\Repo\RestApi\RouteHandlers\RemoveItemLabelRouteHandler::$removeItemLabel
private

◆ $responseFactory

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

◆ BOT_BODY_PARAM

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

◆ BOT_PARAM_DEFAULT

const Wikibase\Repo\RestApi\RouteHandlers\RemoveItemLabelRouteHandler::BOT_PARAM_DEFAULT = false
private

◆ COMMENT_BODY_PARAM

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

◆ COMMENT_PARAM_DEFAULT

const Wikibase\Repo\RestApi\RouteHandlers\RemoveItemLabelRouteHandler::COMMENT_PARAM_DEFAULT = null
private

◆ ITEM_ID_PATH_PARAM

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

◆ LANGUAGE_CODE_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

◆ TAGS_PARAM_DEFAULT

const Wikibase\Repo\RestApi\RouteHandlers\RemoveItemLabelRouteHandler::TAGS_PARAM_DEFAULT = []
private

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