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

Public Member Functions

 __construct (GetItemStatement $getItemStatement, StatementJsonPresenter $successPresenter, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $itemId, string $statementId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 

Static Public Member Functions

static factory ()
 

Public Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
const ROUTE = '/wikibase/v0/entities/items/{item_id}/statements/{statement_id}'
 

Private Member Functions

 newSuccessHttpResponse (GetItemStatementSuccessResponse $useCaseResponse)
 
 setEtagFromRevId (Response $httpResponse, int $revId)
 

Private Attributes

 $getItemStatement
 
 $successPresenter
 
 $responseFactory
 
 $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::__construct ( GetItemStatement  $getItemStatement,
StatementJsonPresenter  $successPresenter,
ResponseFactory  $responseFactory,
MiddlewareHandler  $middlewareHandler 
)

Member Function Documentation

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::newSuccessHttpResponse ( GetItemStatementSuccessResponse  $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::runUseCase ( string  $itemId,
string  $statementId 
)

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $getItemStatement

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::$getItemStatement
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $successPresenter

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

◆ ITEM_ID_PATH_PARAM

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

◆ ROUTE

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::ROUTE = '/wikibase/v0/entities/items/{item_id}/statements/{statement_id}'

◆ STATEMENT_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementRouteHandler::STATEMENT_ID_PATH_PARAM = 'statement_id'

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