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

Public Member Functions

 __construct (CreateItem $useCase, ItemPartsSerializer $serializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase ()
 
 validate (Validator $restValidator)
 
 getBodyParamSettings ()
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (CreateItemResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const ITEM_BODY_PARAM = 'item'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
CreateItem $useCase
 
ItemPartsSerializer $itemSerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::__construct ( CreateItem $useCase,
ItemPartsSerializer $serializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ factory()

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

◆ getBodyParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::getBodyParamSettings ( )

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::newSuccessHttpResponse ( CreateItemResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::runUseCase ( )

◆ validate()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::validate ( Validator $restValidator)

Member Data Documentation

◆ $itemSerializer

ItemPartsSerializer Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::$itemSerializer
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

CreateItem Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::ITEM_BODY_PARAM = 'item'
private

◆ TAGS_BODY_PARAM

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

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