WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\View\Template\LexemeTemplateFactory Class Reference

Public Member Functions

 __construct (array $templates)
 
 render ( $key,... $params)
 Shorthand function to retrieve a template filled with the specified parameters.
 

Static Public Member Functions

static factory ()
 

Private Attributes

 $templateRegistry
 

Detailed Description

Author
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\View\Template\LexemeTemplateFactory::__construct ( array $templates)
Parameters
string[]$templates

Member Function Documentation

◆ factory()

static Wikibase\Lexeme\Presentation\View\Template\LexemeTemplateFactory::factory ( )
static

◆ render()

Wikibase\Lexeme\Presentation\View\Template\LexemeTemplateFactory::render ( $key,
$params )

Shorthand function to retrieve a template filled with the specified parameters.

important! note that the Template class does not escape anything. be sure to escape your params before using this function!

Parameters
string$keytemplate key
array...$params normal template parameters
Returns
string

Member Data Documentation

◆ $templateRegistry

Wikibase\Lexeme\Presentation\View\Template\LexemeTemplateFactory::$templateRegistry
private

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