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

Public Member Functions

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

Static Public Member Functions

static factory ()
 

Private Member Functions

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

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_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'
 
AddPropertyAliasesInLanguage $addPropertyAliases
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::__construct ( AddPropertyAliasesInLanguage $addPropertyAliases,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

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

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::newSuccessHttpResponse ( AddPropertyAliasesInLanguageResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::runUseCase ( string $propertyId,
string $languageCode )

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $addPropertyAliases

AddPropertyAliasesInLanguage Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::$addPropertyAliases
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ ALIASES_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::ALIASES_BODY_PARAM = 'aliases'
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ LANGUAGE_CODE_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::LANGUAGE_CODE_PATH_PARAM = 'language_code'
private

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\AddPropertyAliasesInLanguageRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'
private

◆ TAGS_BODY_PARAM

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

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