MediaWiki  1.23.1
ModernTemplate Class Reference
Inheritance diagram for ModernTemplate:
Collaboration diagram for ModernTemplate:

Public Member Functions

 execute ()
 Template filter callback for Modern skin. More...
 
- Public Member Functions inherited from MonoBookTemplate
 cactions ()
 Prints the cactions bar. More...
 
 customBox ( $bar, $cont)
 
 languageBox ()
 
 searchBox ()
 
 toolbox ()
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from MonoBookTemplate
 $validFooterIcons = $this->getFooterIcons( "icononly" )
 
 $validFooterLinks = $this->getFooterLinks( "flat" )
 
if(count( $validFooterIcons)+count( $validFooterLinks) > 0) else
 
$this msg('personaltools') $this html('userlangattributes') foreach ($this->getPersonalTools() as $key=> $item)
 
foreach( $validFooterIcons as $blockName=> $footerIcons) foreach( $footerIcons as $icon) if(count( $validFooterLinks) > 0) $this html ( $aLink)
 
$this text ( 'searchtitle')
 
- Protected Member Functions inherited from MonoBookTemplate
 renderPortals ( $sidebar)
 
- Protected Member Functions inherited from BaseTemplate
 renderAfterPortlet ( $name)
 

Detailed Description

Todo:
document

Definition at line 51 of file Modern.php.

Member Function Documentation

◆ execute()

ModernTemplate::execute ( )

Template filter callback for Modern skin.

Takes an associative array of data set from a SkinTemplate-based class, and a wrapper for MediaWiki's localization database, and outputs a formatted page.

Access:\n private

Reimplemented from MonoBookTemplate.

Definition at line 61 of file Modern.php.

References as, MonoBookTemplate\cactions(), content, data, BaseTemplate\getFooterIcons(), BaseTemplate\getFooterLinks(), BaseTemplate\getPersonalTools(), QuickTemplate\getSkin(), href, MonoBookTemplate\html, in, is(), cssjanus\main(), BaseTemplate\makeListItem(), BaseTemplate\msg(), of, php, BaseTemplate\printTrail(), MonoBookTemplate\renderPortals(), MonoBookTemplate\text, used, wfRestoreWarnings(), and wfSuppressWarnings().


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