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

Public Member Functions

 __construct (GetStatement $getStatement, StatementSerializer $statementSerializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $statementId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

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

Private Attributes

const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
GetStatement $getStatement
 
StatementSerializer $statementSerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::__construct ( GetStatement $getStatement,
StatementSerializer $statementSerializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::newSuccessHttpResponse ( GetStatementResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::runUseCase ( string $statementId)

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $getStatement

GetStatement Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::$getStatement
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $statementSerializer

StatementSerializer Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::$statementSerializer
private

◆ STATEMENT_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::STATEMENT_ID_PATH_PARAM = 'statement_id'
private

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