Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\OutputPageJsConfigBuilder Class Reference

Handles adding user-specific or other js config to OutputPage. More...

Public Member Functions

 __construct ()
 
 build (OutputPage $out, $rightsUrl, $rightsText, array $badgeItems, $stringLimit, $taintedReferencesEnabled)
 

Private Member Functions

 getCopyrightConfig ( $rightsUrl, $rightsText, Language $language)
 
 getCopyrightVar (Message $copyrightMessage, Language $language)
 
 getCopyrightMessage ( $rightsUrl, $rightsText, Language $language)
 

Private Attributes

 $copyrightMessageBuilder
 

Detailed Description

Handles adding user-specific or other js config to OutputPage.

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\OutputPageJsConfigBuilder::__construct ( )

Member Function Documentation

◆ build()

Wikibase\Repo\OutputPageJsConfigBuilder::build ( OutputPage  $out,
  $rightsUrl,
  $rightsText,
array  $badgeItems,
  $stringLimit,
  $taintedReferencesEnabled 
)
Parameters
OutputPage$out
string$rightsUrl
string$rightsText
string[]$badgeItems
int$stringLimit
bool$taintedReferencesEnabled
Returns
array

◆ getCopyrightConfig()

Wikibase\Repo\OutputPageJsConfigBuilder::getCopyrightConfig (   $rightsUrl,
  $rightsText,
Language  $language 
)
private
Parameters
string$rightsUrl
string$rightsText
Language$language
Returns
array

◆ getCopyrightMessage()

Wikibase\Repo\OutputPageJsConfigBuilder::getCopyrightMessage (   $rightsUrl,
  $rightsText,
Language  $language 
)
private
Parameters
string$rightsUrl
string$rightsText
Language$language
Returns
Message

◆ getCopyrightVar()

Wikibase\Repo\OutputPageJsConfigBuilder::getCopyrightVar ( Message  $copyrightMessage,
Language  $language 
)
private
Parameters
Message$copyrightMessage
Language$language
Returns
array[]

Member Data Documentation

◆ $copyrightMessageBuilder

Wikibase\Repo\OutputPageJsConfigBuilder::$copyrightMessageBuilder
private

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