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

Public Member Functions

 __construct (RemovePropertyLabel $removePropertyLabel, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 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 TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse ()
 
 getUsername ()
 

Private Attributes

const TAGS_PARAM_DEFAULT = []
 
const BOT_PARAM_DEFAULT = false
 
const COMMENT_PARAM_DEFAULT = null
 
RemovePropertyLabel $removePropertyLabel
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyLabelRouteHandler::__construct ( RemovePropertyLabel $removePropertyLabel,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

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

◆ run()

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

◆ runUseCase()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $removePropertyLabel

RemovePropertyLabel Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyLabelRouteHandler::$removePropertyLabel
private

◆ $responseFactory

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

◆ BOT_BODY_PARAM

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

◆ BOT_PARAM_DEFAULT

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

◆ COMMENT_BODY_PARAM

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

◆ COMMENT_PARAM_DEFAULT

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

◆ LANGUAGE_CODE_PATH_PARAM

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

◆ PROPERTY_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

◆ TAGS_PARAM_DEFAULT

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

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