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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

 getUsername ()
 
 newSuccessResponse ()
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const SITE_ID_PATH_PARAM = 'site_id'
 
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
 
RemoveSitelink $useCase
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessResponse()

Wikibase\Repo\RestApi\RouteHandlers\RemoveSitelinkRouteHandler::newSuccessResponse ( )
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\RemoveSitelinkRouteHandler::runUseCase ( string $itemId,
string $siteId )

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

RemoveSitelink Wikibase\Repo\RestApi\RouteHandlers\RemoveSitelinkRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ BOT_PARAM_DEFAULT

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

◆ COMMENT_BODY_PARAM

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

◆ COMMENT_PARAM_DEFAULT

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

◆ ITEM_ID_PATH_PARAM

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

◆ SITE_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemoveSitelinkRouteHandler::SITE_ID_PATH_PARAM = 'site_id'
private

◆ TAGS_BODY_PARAM

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

◆ TAGS_PARAM_DEFAULT

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

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