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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Public Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
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
 
RemoveItemStatement $useCase
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

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

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\RemoveItemStatementRouteHandler::runUseCase ( string $itemId,
string $statementId )

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

RemoveItemStatement Wikibase\Repo\RestApi\RouteHandlers\RemoveItemStatementRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ BOT_PARAM_DEFAULT

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

◆ COMMENT_BODY_PARAM

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

◆ COMMENT_PARAM_DEFAULT

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

◆ ITEM_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemoveItemStatementRouteHandler::ITEM_ID_PATH_PARAM = 'item_id'

◆ STATEMENT_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemoveItemStatementRouteHandler::STATEMENT_ID_PATH_PARAM = 'statement_id'

◆ TAGS_BODY_PARAM

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

◆ TAGS_PARAM_DEFAULT

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

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