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, $ssrServerUrl, $ssrServerTimeout, LoggerInterface $logger, StatsdDataFactoryInterface $stats)
 
 getContent (EntityId $entityId, $revision, $language, $editLink, LanguageFallbackChain $preferredLanguages)
 
Exceptions
TermboxRenderingException
Parameters
EntityId$entityId
int$revision
string$language
string$editLink
LanguageFallbackChain$preferredLanguages
Returns
string

 

Public Attributes

const HTTP_STATUS_OK = 200
 

Private Member Functions

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

Private Attributes

 $requestFactory
 
 $ssrServerUrl
 
 $logger
 
 $stats
 
 $ssrServerTimeout
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ formatUrl()

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

◆ getContent()

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

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

Implements Wikibase\View\Termbox\Renderer\TermboxRenderer.

◆ getLanguageCodes()

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

◆ getRequestParams()

Wikibase\View\Termbox\Renderer\TermboxRemoteRenderer::getRequestParams ( EntityId  $entityId,
  $revision,
  $language,
  $editLink,
LanguageFallbackChain  $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: