MediaWiki  1.23.2
VectorTemplate Class Reference

QuickTemplate class for Vector skin. More...

Inheritance diagram for VectorTemplate:
Collaboration diagram for VectorTemplate:

Public Member Functions

 execute ()
 Outputs the entire contents of the (X)HTML page. More...
 
- 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. More...
 
 getFooterLinks ( $option=null)
 Returns an array of footerlinks trimmed down to only those footer links that are valid. More...
 
 getMsg ( $name)
 Get a Message object with its context set. More...
 
 getPersonalTools ()
 Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate. More...
 
 getSidebar ( $options=array())
 
 getToolbox ()
 Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate. More...
 
 makeLink ( $key, $item, $options=array())
 Makes a link, usually used by makeListItem to generate a link for an item in a list used in navigation lists, portlets, portals, sidebars, etc... More...
 
 makeListItem ( $key, $item, $options=array())
 Generates a list item for a navigation, portlet, portal, sidebar... More...
 
 makeSearchButton ( $mode, $attrs=array())
 
 makeSearchInput ( $attrs=array())
 
 msg ( $str)
 
 msgHtml ( $str)
 
 msgWiki ( $str)
 An ugly, ugly hack. More...
 
 printTrail ()
 Output the basic end-page trail including bottomscripts, reporttime, and debug stuff. More...
 
- Public Member Functions inherited from QuickTemplate
 __construct ()
 Constructor. More...
 
 get ( $name, $default=null)
 Gets the template data requested. More...
 
 getHTML ()
 Fetch the output of a QuickTemplate and return it. More...
 
 getSkin ()
 Get the Skin object related to this object. More...
 
 haveData ( $str)
 
 haveMsg ( $str)
 
 html ( $str)
 
 set ( $name, $value)
 Sets the value $value to $name. More...
 
 setRef ( $name, &$value)
 
 setTranslator (&$t)
 
 text ( $str)
 

Public Attributes

$this html('userlangattributes') foreach( $this->getFooterLinks() as $category=> $links) foreach( $links as $link) $this html($link) $footericons = $this->getFooterIcons( "icononly" )
 
case __pad3__ if(count( $this->data['personal_urls'])==0) $this msg('personaltools') $this html('userlangattributes') $personalTools:
 
$this msg('namespaces') $this html('userlangattributes') foreach( $this->data['namespace_urls'] as $link) break
 
case __pad0__ if(count( $this->data['variant_urls'])==0) foreach( $this->data['variant_urls'] as $link) $this msg('variants') foreach( $this->data['variant_urls'] as $link) break:
 
case __pad1__ if(count( $this->data['view_urls'])==0) $this msg('views') $this html('userlangattributes') foreach( $this->data['view_urls'] as $link) if(array_key_exists( 'text', $link)) break:
 
case __pad2__ if(count( $this->data['action_urls'])==0) $this msg('actions') $this html('userlangattributes') foreach( $this->data['action_urls'] as $link) break:
 
foreach( $personalTools as $key=> $item) break
 
 break
 
if(is_array( $content)) else {
 
case __pad4__ $this html('userlangattributes') $this msg('search') $this text('wgScript') if( $wgVectorUseSimpleSearch) else:
 
$this html ( 'userlangattributes')
 

Protected Member Functions

 renderNavigation ( $elements)
 Render one or more navigations elements by name, automatically reveresed when UI is in RTL mode. More...
 
 renderPortal ( $name, $content, $msg=null, $hook=null)
 
 renderPortals ( $portals)
 Render a series of portals. More...
 
- Protected Member Functions inherited from BaseTemplate
 renderAfterPortlet ( $name)
 

Detailed Description

QuickTemplate class for Vector skin.

Definition at line 94 of file Vector.php.

Member Function Documentation

◆ execute()

VectorTemplate::execute ( )

◆ renderNavigation()

VectorTemplate::renderNavigation (   $elements)
protected

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

Parameters
$elementsarray

Definition at line 337 of file Vector.php.

References $name, array(), as, data, global, html, BaseTemplate\msg(), and php.

Referenced by execute().

◆ renderPortal()

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

Definition at line 295 of file Vector.php.

References $name, php, Linker\tooltip(), and wfMessage().

Referenced by renderPortals().

◆ renderPortals()

VectorTemplate::renderPortals (   $portals)
protected

Render a series of portals.

Parameters
$portalsarray

Definition at line 254 of file Vector.php.

References $name, as, data, BaseTemplate\getToolbox(), and renderPortal().

Referenced by execute().

Member Data Documentation

◆ $footericons

$this html ( 'userlangattributes' ) foreach ($this->getFooterLinks() as $category=> $links) foreach ($links as $link) $this html ( $link ) VectorTemplate::$footericons = $this->getFooterIcons( "icononly" )

Definition at line 227 of file Vector.php.

◆ $personalTools

case __pad3__ if (count($this->data[ 'personal_urls'])==0) $this msg ( 'personaltools' ) $this html ( 'userlangattributes' ) VectorTemplate::$personalTools = $this->getPersonalTools()

Definition at line 421 of file Vector.php.

◆ break [1/6]

$this msg ( 'namespaces' ) $this html ( 'userlangattributes' ) foreach ($this->data[ 'namespace_urls'] as $link) VectorTemplate::break

Definition at line 356 of file Vector.php.

◆ break [2/6]

case __pad0__ if (count($this->data[ 'variant_urls'])==0) foreach ($this->data[ 'variant_urls'] as $link) $this msg ( 'variants' ) foreach ($this->data[ 'variant_urls'] as $link) VectorTemplate::break

Definition at line 376 of file Vector.php.

◆ break [3/6]

case __pad1__ if (count($this->data[ 'view_urls'])==0) $this msg ( 'views' ) $this html ( 'userlangattributes' ) foreach ($this->data[ 'view_urls'] as $link) if (array_key_exists('text', $link)) VectorTemplate::break

Definition at line 392 of file Vector.php.

◆ break [4/6]

case __pad2__ if (count($this->data[ 'action_urls'])==0) $this msg ( 'actions' ) $this html ( 'userlangattributes' ) foreach ($this->data[ 'action_urls'] as $link) VectorTemplate::break

Definition at line 407 of file Vector.php.

◆ break [5/6]

foreach ($personalTools as $key=> $item) VectorTemplate::break

Definition at line 422 of file Vector.php.

◆ break [6/6]

VectorTemplate::break

Definition at line 442 of file Vector.php.

◆ else [1/2]

if (is_array($content)) VectorTemplate::else {

Definition at line 319 of file Vector.php.

◆ else [2/2]

case __pad4__ $this html ( 'userlangattributes' ) $this msg ( 'search' ) $this text ( 'wgScript' ) if ($wgVectorUseSimpleSearch) VectorTemplate::else {

Definition at line 437 of file Vector.php.

◆ html

$this VectorTemplate::html('userlangattributes')

Definition at line 302 of file Vector.php.

Referenced by execute(), and renderNavigation().


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