Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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, StatementListSerializer $statementListSerializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $itemId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (GetItemStatementsResponse $useCaseResponse)
 
 newRedirectHttpResponse (ItemRedirect $e)
 
 setEtagFromRevId (Response $response, int $revId)
 

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
const PROPERTY_QUERY_PARAM = 'property'
 
GetItemStatements $getItemStatements
 
StatementListSerializer $statementListSerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ 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 ( ItemRedirect $e)
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::newSuccessHttpResponse ( GetItemStatementsResponse $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

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

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementListSerializer

StatementListSerializer Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::$statementListSerializer
private

◆ ITEM_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::ITEM_ID_PATH_PARAM = 'item_id'
private

◆ PROPERTY_QUERY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetItemStatementsRouteHandler::PROPERTY_QUERY_PARAM = 'property'
private

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