Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler:

Public Member Functions

 __construct (GetItem $getItem, GetItemJsonPresenter $presenter, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $id)
 
 getParamSettings ()
 
 needsWriteAccess ()
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetItemSuccessResponse $useCaseResponse)
 
 newRedirectHttpResponse (ItemRedirectResponse $useCaseResponse)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const ID_PATH_PARAM = 'id'
 
const FIELDS_QUERY_PARAM = '_fields'
 
 $getItem
 
 $successPresenter
 
 $responseFactory
 
 $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::__construct ( GetItem  $getItem,
GetItemJsonPresenter  $presenter,
ResponseFactory  $responseFactory,
MiddlewareHandler  $middlewareHandler 
)

Member Function Documentation

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::needsWriteAccess ( )

◆ newRedirectHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::newRedirectHttpResponse ( ItemRedirectResponse  $useCaseResponse)
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::newSuccessHttpResponse ( GetItemSuccessResponse  $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::runUseCase ( string  $id)

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::setEtagFromRevId ( Response  $response,
int  $revId 
)
private

Member Data Documentation

◆ $getItem

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::$getItem
private

◆ $middlewareHandler

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::$middlewareHandler
private

◆ $responseFactory

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::$responseFactory
private

◆ $successPresenter

Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::$successPresenter
private

◆ FIELDS_QUERY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::FIELDS_QUERY_PARAM = '_fields'
private

◆ ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemRouteHandler::ID_PATH_PARAM = 'id'
private

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