Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\View\Template\TemplateRegistry Class Reference

Allows storing and accessing of templates (e.g. More...

Public Member Functions

 __construct (array $templates)
 
 getTemplates ()
 Gets the array containing all templates.
 
 getTemplate ( $key)
 Gets a specific template.
 

Private Attributes

 $templates = []
 

Detailed Description

Allows storing and accessing of templates (e.g.

snippets commonly used in server-side HTML generation and client-side JavaScript processing).

This class Stores plain templates.

Author
H. Snater media.nosp@m.wiki.nosp@m.@snat.nosp@m.er.c.nosp@m.om
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\View\Template\TemplateRegistry::__construct ( array $templates)
Parameters
string[]$templates

Member Function Documentation

◆ getTemplate()

Wikibase\View\Template\TemplateRegistry::getTemplate ( $key)

Gets a specific template.

Parameters
string$key
Returns
string

◆ getTemplates()

Wikibase\View\Template\TemplateRegistry::getTemplates ( )

Gets the array containing all templates.

Returns
string[]

Member Data Documentation

◆ $templates

Wikibase\View\Template\TemplateRegistry::$templates = []
private

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