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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (SetPropertyDescriptionResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
const DESCRIPTION_BODY_PARAM = 'description'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
SetPropertyDescription $useCase
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\SetPropertyDescriptionRouteHandler::__construct ( SetPropertyDescription $useCase,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\SetPropertyDescriptionRouteHandler::newSuccessHttpResponse ( SetPropertyDescriptionResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

SetPropertyDescription Wikibase\Repo\RestApi\RouteHandlers\SetPropertyDescriptionRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ DESCRIPTION_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\SetPropertyDescriptionRouteHandler::DESCRIPTION_BODY_PARAM = 'description'
private

◆ LANGUAGE_CODE_PATH_PARAM

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

◆ PROPERTY_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

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

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