Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter Class Reference

Formats the StringValue from a snak as an HTML link. More...

+ Inheritance diagram for Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter:
+ Collaboration diagram for Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter:

Public Member Functions

 __construct ( $baseUrl)
 
 format ( $value)
 

Private Member Functions

 encodeSpaces ( $pageName)
 

Private Attributes

 $baseUrl
 

Detailed Description

Formats the StringValue from a snak as an HTML link.

Author
Jonas Kress

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter::__construct (   $baseUrl)
Parameters
string$baseUrlBase URL, used to build links to the geo shape storage.

Member Function Documentation

◆ encodeSpaces()

Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter::encodeSpaces (   $pageName)
private
Parameters
string$pageName
Returns
string

◆ format()

Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter::format (   $value)
See also
ValueFormatter::format

Formats the given page title as an HTML link

Parameters
StringValue$valueThe page title to be turned into a link
Exceptions
InvalidArgumentException
Returns
string HTML

Member Data Documentation

◆ $baseUrl

Wikibase\Lib\Formatters\InterWikiLinkHtmlFormatter::$baseUrl
private

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