Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\Specials\Admin\OutputFormatter Class Reference

Public Member Functions

 __construct (OutputPage $outputPage)
 
 addParentLink ()
 
 setPageTitle ($title)
 
 addHTML ($html)
 
 addWikiText ($text)
 
 redirectToRootPage ($fragment= '')
 
 getSpecialPageLinkWith ($caption= '', $query=array())
 
 formatAsRaw (callable $text)
 
 encodeAsJson (array $input)
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\MediaWiki\Specials\Admin\OutputFormatter::__construct ( OutputPage  $outputPage)
Since
2.5
Parameters
OutputPage$outputPage

Member Function Documentation

SMW\MediaWiki\Specials\Admin\OutputFormatter::addHTML (   $html)
Since
2.5
Parameters
string$html
SMW\MediaWiki\Specials\Admin\OutputFormatter::addParentLink ( )
Since
2.5
SMW\MediaWiki\Specials\Admin\OutputFormatter::addWikiText (   $text)
Since
2.5
Parameters
string$text
SMW\MediaWiki\Specials\Admin\OutputFormatter::encodeAsJson ( array  $input)
Note
JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, and JSON_UNESCAPED_UNICOD were only added with 5.4
Since
2.5
Parameters
array$input
Returns
string
SMW\MediaWiki\Specials\Admin\OutputFormatter::formatAsRaw ( callable  $text)
Since
2.5
Parameters
callable$text
SMW\MediaWiki\Specials\Admin\OutputFormatter::getSpecialPageLinkWith (   $caption = '',
  $query = array() 
)
Since
2.5
Parameters
string$caption
array$query
SMW\MediaWiki\Specials\Admin\OutputFormatter::redirectToRootPage (   $fragment = '')
Since
2.5
Parameters
string$fragment
SMW\MediaWiki\Specials\Admin\OutputFormatter::setPageTitle (   $title)
Since
2.5
Parameters
string$title

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