MediaWiki REL1_33
VectorTemplate Class Reference

QuickTemplate subclass for Vector. More...

Inheritance diagram for VectorTemplate:
Collaboration diagram for VectorTemplate:

Public Member Functions

 execute ()
 Outputs the entire contents of the HTML page.
 
 makeLink ( $key, $item, $options=[])
 @inheritDoc
 
 makeListItem ( $key, $item, $options=[])
 @inheritDoc
 
- Public Member Functions inherited from BaseTemplate
 getFooterIcons ( $option=null)
 Returns an array of footer icons filtered down by options relevant to how the skin wishes to display them.
 
 getFooterLinks ( $option=null)
 Returns an array of footerlinks trimmed down to only those footer links that are valid.
 
 getIndicators ()
 Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed in the top-right corner of the page, outside of the main content.
 
 getMsg ( $name)
 Get a Message object with its context set.
 
 getPersonalTools ()
 Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
 
 getSidebar ( $options=[])
 
 getToolbox ()
 Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
 
 getTrail ()
 Get the basic end-page trail including bottomscripts, reporttime, and debug stuff.
 
 makeSearchButton ( $mode, $attrs=[])
 
 makeSearchInput ( $attrs=[])
 
 msg ( $str)
 
 msgHtml ( $str)
 
 msgWiki ( $str)
 
 printTrail ()
 Output getTrail.
 
- Public Member Functions inherited from QuickTemplate
 __construct (Config $config=null)
 
 extend ( $name, $value)
 extends the value of data with name $name with the value $value
 
 get ( $name, $default=null)
 Gets the template data requested.
 
 getHTML ()
 Fetch the output of a QuickTemplate and return it.
 
 getSkin ()
 Get the Skin object related to this object.
 
 haveData ( $str)
 
 haveMsg ( $msgKey)
 
 html ( $str)
 
 set ( $name, $value)
 Sets the value $value to $name.
 
 setRef ( $name, &$value)
 
 text ( $str)
 

Protected Member Functions

 renderNavigation (array $elements)
 Render one or more navigations elements by name, automatically reversed by css when UI is in RTL mode.
 
 renderPortal ( $name, $content, $msg=null, $hook=null)
 
 renderPortals (array $portals)
 Render a series of portals.
 
- Protected Member Functions inherited from BaseTemplate
 getAfterPortlet ( $name)
 Allows extensions to hook into known portlets and add stuff to them.
 
 getClear ()
 Get a div with the core visualClear class, for clearing floats.
 
 getFooter ( $iconStyle='icononly', $linkStyle='flat')
 Renderer for getFooterIcons and getFooterLinks.
 
 renderAfterPortlet ( $name)
 

Additional Inherited Members

- Public Attributes inherited from QuickTemplate
array $data
 
- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

QuickTemplate subclass for Vector.

Definition at line 29 of file VectorTemplate.php.

Member Function Documentation

◆ execute()

◆ makeLink()

VectorTemplate::makeLink ( $key,
$item,
$options = [] )

@inheritDoc

Reimplemented from BaseTemplate.

Definition at line 450 of file VectorTemplate.php.

References $html, $options, and and().

◆ makeListItem()

VectorTemplate::makeListItem ( $key,
$item,
$options = [] )

@inheritDoc

Reimplemented from BaseTemplate.

Definition at line 462 of file VectorTemplate.php.

References $options, and and().

Referenced by renderNavigation(), and renderPortal().

◆ renderNavigation()

VectorTemplate::renderNavigation ( array $elements)
protected

Render one or more navigations elements by name, automatically reversed by css when UI is in RTL mode.

Parameters
array$elements

Definition at line 268 of file VectorTemplate.php.

References and(), div, form, BaseTemplate\getMsg(), BaseTemplate\getPersonalTools(), QuickTemplate\getSkin(), User\groupHasPermission(), QuickTemplate\html(), makeListItem(), BaseTemplate\makeSearchButton(), BaseTemplate\makeSearchInput(), BaseTemplate\msg(), text, and type.

Referenced by execute().

◆ renderPortal()

VectorTemplate::renderPortal ( $name,
$content,
$msg = null,
$hook = null )
protected
Parameters
string$name
array | string$content
null | string$msg
null | string | array$hook

Definition at line 217 of file VectorTemplate.php.

References $content, $name, and(), div, BaseTemplate\getMsg(), QuickTemplate\html(), makeListItem(), BaseTemplate\renderAfterPortlet(), and Linker\tooltip().

Referenced by renderPortals().

◆ renderPortals()

VectorTemplate::renderPortals ( array $portals)
protected

Render a series of portals.

Parameters
array$portals

Definition at line 175 of file VectorTemplate.php.

References $content, and(), BaseTemplate\getToolbox(), renderPortal(), and string.

Referenced by execute().


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