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

Public Member Functions

 __construct (GetSitelinks $getSitelinks, SitelinksSerializer $sitelinksSerializer, MiddlewareHandler $middlewareHandler, ResponseFactory $responseFactory)
 
 needsWriteAccess ()
 
 run (... $args)
 
 runUseCase (string $id)
 
 getParamSettings ()
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Private Member Functions

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

Private Attributes

const ITEM_ID_PATH_PARAM = 'item_id'
 
GetSitelinks $getSitelinks
 
SitelinksSerializer $sitelinksSerializer
 
MiddlewareHandler $middlewareHandler
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetSitelinksRouteHandler::__construct ( GetSitelinks $getSitelinks,
SitelinksSerializer $sitelinksSerializer,
MiddlewareHandler $middlewareHandler,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getParamSettings()

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

◆ needsWriteAccess()

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

◆ newRedirectHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetSitelinksRouteHandler::newRedirectHttpResponse ( ItemRedirect $e)
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetSitelinksRouteHandler::newSuccessHttpResponse ( GetSitelinksResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

◆ setEtagFromRevId()

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

Member Data Documentation

◆ $getSitelinks

GetSitelinks Wikibase\Repo\RestApi\RouteHandlers\GetSitelinksRouteHandler::$getSitelinks
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $sitelinksSerializer

SitelinksSerializer Wikibase\Repo\RestApi\RouteHandlers\GetSitelinksRouteHandler::$sitelinksSerializer
private

◆ ITEM_ID_PATH_PARAM

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

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