MediaWiki REL1_30
MonoBookTemplate Class Reference
Inheritance diagram for MonoBookTemplate:
Collaboration diagram for MonoBookTemplate:

Public Member Functions

 cactions ()
 Prints the content actions (cactions) bar.
 
 customBox ( $bar, $cont)
 
 execute ()
 Template filter callback for MonoBook skin.
 
 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.
 
 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.
 
 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...
 
 makeListItem ( $key, $item, $options=[])
 Generates a list item for a navigation, portlet, portal, sidebar... list.
 
 makeSearchButton ( $mode, $attrs=[])
 
 makeSearchInput ( $attrs=[])
 
 msg ( $str)
 
 msgHtml ( $str)
 
 msgWiki ( $str)
 An ugly, ugly hack.
 
 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 ( $str)
 
 html ( $str)
 
 set ( $name, $value)
 Sets the value $value to $name.
 
 setRef ( $name, &$value)
 
 setTranslator (&$t)
 
 text ( $str)
 

Protected Member Functions

 renderPortals ( $sidebar)
 
- 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
 
MediaWikiI18N $translator
 
- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

Definition at line 30 of file MonoBookTemplate.php.

Member Function Documentation

◆ cactions()

MonoBookTemplate::cactions ( )

Prints the content actions (cactions) bar.

Shared between MonoBook and Modern

Definition at line 287 of file MonoBookTemplate.php.

References BaseTemplate\makeListItem(), BaseTemplate\msg(), and BaseTemplate\renderAfterPortlet().

Referenced by ModernTemplate\execute(), and execute().

◆ customBox()

MonoBookTemplate::customBox ( $bar,
$cont )
Parameters
string$bar
array | string$cont

Definition at line 360 of file MonoBookTemplate.php.

References BaseTemplate\makeListItem(), print, BaseTemplate\renderAfterPortlet(), Linker\titleAttrib(), and wfMessage().

Referenced by renderPortals().

◆ execute()

MonoBookTemplate::execute ( )

Template filter callback for MonoBook 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.

Reimplemented from QuickTemplate.

Reimplemented in ModernTemplate.

Definition at line 38 of file MonoBookTemplate.php.

References cactions(), column, BaseTemplate\getFooterIcons(), BaseTemplate\getFooterLinks(), BaseTemplate\getIndicators(), BaseTemplate\getMsg(), BaseTemplate\getPersonalTools(), QuickTemplate\getSkin(), href, QuickTemplate\html(), BaseTemplate\makeListItem(), BaseTemplate\msg(), BaseTemplate\printTrail(), renderPortals(), and Linker\tooltipAndAccesskeyAttribs().

◆ languageBox()

MonoBookTemplate::languageBox ( )

◆ renderPortals()

MonoBookTemplate::renderPortals ( $sidebar)
protected
Parameters
array$sidebar

Definition at line 214 of file MonoBookTemplate.php.

References customBox(), languageBox(), searchBox(), string, and toolbox().

Referenced by ModernTemplate\execute(), and execute().

◆ searchBox()

MonoBookTemplate::searchBox ( )

◆ toolbox()

MonoBookTemplate::toolbox ( )

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