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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Public Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const LANGUAGE_CODE_PATH_PARAM = 'language_code'
 
const ALIASES_BODY_PARAM = 'aliases'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse (AddItemAliasesInLanguageResponse $useCaseResponse)
 
 setEtagFromRevId (Response $httpResponse, int $revId)
 
 getUsername ()
 

Private Attributes

AddItemAliasesInLanguage $addItemAliases
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::__construct ( AddItemAliasesInLanguage $addItemAliases,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::newSuccessHttpResponse ( AddItemAliasesInLanguageResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::runUseCase ( string $itemId,
string $languageCode )

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::setEtagFromRevId ( Response $httpResponse,
int $revId )
private

Member Data Documentation

◆ $addItemAliases

AddItemAliasesInLanguage Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::$addItemAliases
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ ALIASES_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::ALIASES_BODY_PARAM = 'aliases'

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_ID_PATH_PARAM

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

◆ LANGUAGE_CODE_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddItemAliasesInLanguageRouteHandler::LANGUAGE_CODE_PATH_PARAM = 'language_code'

◆ TAGS_BODY_PARAM

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

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