Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer Class Reference
+ Inheritance diagram for Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer:
+ Collaboration diagram for Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer:

Public Member Functions

 __construct (HttpRequestFactory $requestFactory, ?string $ssrServerUrl, $ssrServerTimeout, LoggerInterface $logger, StatsdDataFactoryInterface $stats)
 
 getContent (EntityId $entityId, $revision, $language, $editLink, TermLanguageFallbackChain $preferredLanguages)
 
Parameters
EntityId$entityId
int$revision
string$language
string$editLink
TermLanguageFallbackChain$preferredLanguages
Returns
string
Exceptions
TermboxRenderingException

 

Public Attributes

const HTTP_STATUS_OK = 200
 

Private Member Functions

 reportFailureOfRequest ( $message, ?Exception $exception=null)
 
 formatUrl (EntityId $entityId, $revision, $language, $editLink, TermLanguageFallbackChain $preferredLanguages)
 
 getRequestParams (EntityId $entityId, $revision, $language, $editLink, TermLanguageFallbackChain $preferredLanguages)
 
 getLanguageCodes (TermLanguageFallbackChain $preferredLanguages)
 

Private Attributes

 $requestFactory
 
 $ssrServerUrl
 
 $logger
 
 $stats
 
 $ssrServerTimeout
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::__construct ( HttpRequestFactory $requestFactory,
?string $ssrServerUrl,
$ssrServerTimeout,
LoggerInterface $logger,
StatsdDataFactoryInterface $stats )

Member Function Documentation

◆ formatUrl()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::formatUrl ( EntityId $entityId,
$revision,
$language,
$editLink,
TermLanguageFallbackChain $preferredLanguages )
private

◆ getContent()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::getContent ( EntityId $entityId,
$revision,
$language,
$editLink,
TermLanguageFallbackChain $preferredLanguages )

Parameters
EntityId$entityId
int$revision
string$language
string$editLink
TermLanguageFallbackChain$preferredLanguages
Returns
string
Exceptions
TermboxRenderingException

Implements Wikibase\View\Termbox\Renderer\TermboxRenderer.

◆ getLanguageCodes()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::getLanguageCodes ( TermLanguageFallbackChain $preferredLanguages)
private

◆ getRequestParams()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::getRequestParams ( EntityId $entityId,
$revision,
$language,
$editLink,
TermLanguageFallbackChain $preferredLanguages )
private

◆ reportFailureOfRequest()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::reportFailureOfRequest ( $message,
?Exception $exception = null )
private

Member Data Documentation

◆ $logger

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::$logger
private

◆ $requestFactory

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::$requestFactory
private

◆ $ssrServerTimeout

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::$ssrServerTimeout
private

◆ $ssrServerUrl

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::$ssrServerUrl
private

◆ $stats

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::$stats
private

◆ HTTP_STATUS_OK

const Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::HTTP_STATUS_OK = 200

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