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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Public Attributes

const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse (PatchSitelinksResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const PATCH_BODY_PARAM = 'patch'
 
PatchSiteLinks $useCase
 
SitelinksSerializer $serializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\PatchSitelinksRouteHandler::__construct ( PatchSiteLinks $useCase,
SitelinksSerializer $serializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchSitelinksRouteHandler::newSuccessHttpResponse ( PatchSitelinksResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\PatchSitelinksRouteHandler::runUseCase ( string $itemId)

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $serializer

SitelinksSerializer Wikibase\Repo\RestApi\RouteHandlers\PatchSitelinksRouteHandler::$serializer
private

◆ $useCase

PatchSiteLinks Wikibase\Repo\RestApi\RouteHandlers\PatchSitelinksRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_ID_PATH_PARAM

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

◆ PATCH_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchSitelinksRouteHandler::PATCH_BODY_PARAM = 'patch'
private

◆ TAGS_BODY_PARAM

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

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