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

Public Member Functions

 __construct (GetItemStatements $getItemStatements, GetItemStatementsJsonPresenter $presenter, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $itemId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 

Static Public Member Functions

static factory ()
 

Private Member Functions

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

Private Attributes

const ID_PATH_PARAM = 'id'
 
 $getItemStatements
 
 $successPresenter
 
 $responseFactory
 
 $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::__construct ( GetItemStatements  $getItemStatements,
GetItemStatementsJsonPresenter  $presenter,
ResponseFactory  $responseFactory,
MiddlewareHandler  $middlewareHandler 
)

Member Function Documentation

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newRedirectHttpResponse()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::newSuccessHttpResponse ( GetItemStatementsSuccessResponse  $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $getItemStatements

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::$getItemStatements
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $successPresenter

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

◆ ID_PATH_PARAM

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

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