MediaWiki  1.29.1
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...
 
 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. 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=[])
 
 getToolbox ()
 Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate. More...
 
 getTrail ()
 Get the basic end-page trail including bottomscripts, reporttime, and debug stuff. More...
 
 makeLink ( $key, $item, $options=[])
 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=[])
 Generates a list item for a navigation, portlet, portal, sidebar... More...
 
 makeSearchButton ( $mode, $attrs=[])
 
 makeSearchInput ( $attrs=[])
 
 msg ( $str)
 
 msgHtml ( $str)
 
 msgWiki ( $str)
 An ugly, ugly hack. More...
 
 printTrail ()
 Output getTrail. More...
 
- 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 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' )
 
 $langSelector = ''
 
case __pad3__ if(count( $this->data['personal_urls'])==0) $this msg('personaltools') $this html('userlangattributes') $notLoggedIn:
 
if(! $this->getSkin() ->getUser() ->isLoggedIn() &&User::groupHasPermission(' *', 'edit') $personalTools ) = $this->getPersonalTools()
 
case __pad0__ if(count( $this->data['variant_urls'])==0) $variantLabel:
 
if(isset( $link['rel'])) break
 
foreach( $this->data['variant_urls'] as $link) foreach( $this->data['variant_urls'] as $linkbreak
 
if(isset( $link['rel'])) if(array_key_exists( 'text', $link)) break
 
case __pad2__ if(count( $this->data['action_urls'])==0) $this msg('vector-more-actions') $this html('userlangattributes') foreach( $this->data['action_urls'] as $linkbreak:
 
if(array_key_exists( 'uls', $personalTools)) if(! $this->data[ 'rtl']) foreach( $personalTools as $key=> $item) if( $this->data[ 'rtl']) break
 
 break
 
if(is_array( $content)) else
 
$this msg('namespaces') $this html('userlangattributes') foreach ($this->data[ 'namespace_urls'] as $link)
 
case __pad1__ if(count( $this->data['view_urls'])==0) $this msg('views') $this html('userlangattributes') foreach ($this->data[ 'view_urls'] as $link):
 
$this html ( 'userlangattributes')
 
case __pad4__ $this html('userlangattributes') $this msg('search') $this text ( 'wgScript'):
 

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
 getAfterPortlet ( $name)
 Allows extensions to hook into known portlets and add stuff to them. More...
 
 getClear ()
 Get a div with the core visualClear class, for clearing floats. More...
 
 getFooter ( $iconStyle='icononly', $linkStyle='flat')
 Renderer for getFooterIcons and getFooterLinks. More...
 
 renderAfterPortlet ( $name)
 

Additional Inherited Members

- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

QuickTemplate class for Vector skin.

Definition at line 29 of file VectorTemplate.php.

Member Function Documentation

◆ execute()

◆ renderNavigation()

VectorTemplate::renderNavigation (   $elements)
protected

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

Parameters
array$elements

Definition at line 341 of file VectorTemplate.php.

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

Referenced by execute().

◆ renderPortal()

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

Definition at line 293 of file VectorTemplate.php.

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

Referenced by renderPortals().

◆ renderPortals()

VectorTemplate::renderPortals (   $portals)
protected

Render a series of portals.

Parameters
array$portals

Definition at line 249 of file VectorTemplate.php.

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

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 214 of file VectorTemplate.php.

◆ $langSelector

VectorTemplate::$langSelector = ''

Definition at line 518 of file VectorTemplate.php.

◆ $notLoggedIn

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

Definition at line 503 of file VectorTemplate.php.

◆ $personalTools

if (! $this->getSkin() ->getUser() ->isLoggedIn() &&User::groupHasPermission(' *', 'edit') VectorTemplate::$personalTools) = $this->getPersonalTools()

Definition at line 516 of file VectorTemplate.php.

◆ $variantLabel

case __pad0__ if (count($this->data[ 'variant_urls'])==0) VectorTemplate::$variantLabel = $this->getMsg( 'variants' )->text()

Definition at line 391 of file VectorTemplate.php.

◆ break [1/6]

if (isset($link[ 'rel'])) VectorTemplate::break

Definition at line 369 of file VectorTemplate.php.

◆ break [2/6]

foreach ($this->data[ 'variant_urls'] as $link) foreach ($this->data[ 'variant_urls'] as $link) VectorTemplate::break

Definition at line 406 of file VectorTemplate.php.

◆ break [3/6]

if (isset($link[ 'rel'])) if (array_key_exists('text', $link)) VectorTemplate::break

Definition at line 448 of file VectorTemplate.php.

◆ break [4/6]

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

Definition at line 475 of file VectorTemplate.php.

◆ break [5/6]

if (array_key_exists('uls', $personalTools)) if (! $this->data['rtl']) foreach ($personalTools as $key=> $item) if ($this->data['rtl']) VectorTemplate::break

Definition at line 533 of file VectorTemplate.php.

◆ break [6/6]

VectorTemplate::break

Definition at line 553 of file VectorTemplate.php.

◆ else

if (is_array($content)) VectorTemplate::else
Initial value:
{
echo $content

Definition at line 324 of file VectorTemplate.php.

◆ foreach [1/2]

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

Definition at line 363 of file VectorTemplate.php.

◆ foreach [2/2]

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

Definition at line 437 of file VectorTemplate.php.

◆ html

$this VectorTemplate::html('userlangattributes')

Definition at line 305 of file VectorTemplate.php.

Referenced by execute(), and renderNavigation().

◆ text

case __pad4__ $this html ( 'userlangattributes' ) $this msg ( 'search' ) $this VectorTemplate::text('wgScript')

Definition at line 549 of file VectorTemplate.php.


The documentation for this class was generated from the following file:
$content
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content $content
Definition: hooks.txt:1049