BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
MinervaTemplate Class Reference
Inheritance diagram for MinervaTemplate:
Collaboration diagram for MinervaTemplate:

Public Member Functions

 execute ()
 
 getPageActions ()
 
 getFooterLinks ($option=null)
 
- Public Member Functions inherited from BaseTemplate
 getMsg ($name)
 
 msg ($str)
 
 msgHtml ($str)
 
 msgWiki ($str)
 
 getToolbox ()
 
 getPersonalTools ()
 
 getSidebar ($options=[])
 
 makeLink ($key, $item, $options=[])
 
 makeListItem ($key, $item, $options=[])
 
 makeSearchInput ($attrs=[])
 
 makeSearchButton ($mode, $attrs=[])
 
 getFooterLinks ($option=null)
 
 getFooterIcons ($option=null)
 
 getIndicators ()
 
 printTrail ()
 
- Public Member Functions inherited from QuickTemplate
 __construct (Config $config=null)
 
 set ($name, $value)
 
 extend ($name, $value)
 
 get ($name, $default=null)
 
 setRef ($name, &$value)
 
 setTranslator (&$t)
 
 execute ()
 
 getSkin ()
 
 getHTML ()
 

Protected Member Functions

 getChromeHeaderContentHtml ($data)
 
 getSearchForm ($data)
 
 getSearchAttributes ()
 
 getFooterHtml ($data)
 
 getPageActionsHtml ($data)
 
 getHistoryLinkHtml ($data)
 
 isFallbackEditor ()
 
 getSecondaryActions ()
 
 getSecondaryActionsHtml ()
 
 getContentHtml ($data)
 
 getPreContentHtml ($data)
 
 getPostContentHtml ($data)
 
 getContentWrapperHtml ($data)
 
 getMainMenuHtml ($data)
 
 getHeaderHtml ($data)
 
 render ($data)
 
- Protected Member Functions inherited from BaseTemplate
 renderAfterPortlet ($name)
 

Protected Attributes

 $isSpecialPage
 
 $isSpecialMobileMenuPage
 
 $isMainPage
 
 $shouldDisplayPageActionsBeforeHeading = true
 
- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

MinervaTemplate.php Extended Template class of BaseTemplate for mobile devices

Member Function Documentation

MinervaTemplate::execute ( )

Start render the page in template

MinervaTemplate::getChromeHeaderContentHtml (   $data)
protected

Gets the header content for the top chrome.

Parameters
array$dataData used to build the page
Returns
string
MinervaTemplate::getContentHtml (   $data)
protected

Get the HTML for the content of a page

Parameters
array$dataData used to build the page
Returns
string representing HTML of content
MinervaTemplate::getContentWrapperHtml (   $data)
protected

Get the HTML for rendering the wrapper for loading content

Parameters
array$dataData used to build the page
Returns
string HTML
MinervaTemplate::getFooterHtml (   $data)
protected

Get the HTML for rendering the footer elements

Parameters
array$dataData used to build the footer
Returns
string html
MinervaTemplate::getFooterLinks (   $option = null)

Returns footer links

Parameters
string$option
Returns
array
MinervaTemplate::getHeaderHtml (   $data)
protected

Get HTML for header elements

Parameters
array$dataData used to build the header
Returns
string
MinervaTemplate::getHistoryLinkHtml (   $data)
protected

Returns the 'Last edited' message, e.g. 'Last edited on...'

Parameters
array$dataData used to build the page
Returns
string
MinervaTemplate::getMainMenuHtml (   $data)
protected

Gets the main menu only on Special:MobileMenu. On other pages the menu is rendered via JS.

Parameters
array[$data] Data used to build the page
Returns
string
MinervaTemplate::getPageActions ( )

Returns available page actions

Returns
array
MinervaTemplate::getPageActionsHtml (   $data)
protected

Get the HTML for rendering the available page actions

Parameters
array$dataData used to build page actions
Returns
string
MinervaTemplate::getPostContentHtml (   $data)
protected

Gets HTML that needs to come after the main content and before the secondary actions.

Parameters
array$dataThe data used to build the page
Returns
string
MinervaTemplate::getPreContentHtml (   $data)
protected

Get the HTML for rendering pre-content (e.g. heading)

Parameters
array$dataData used to build the page
Returns
string HTML
MinervaTemplate::getSearchAttributes ( )
protected

Get attributes to create search input

Returns
array Array with attributes for search bar
MinervaTemplate::getSearchForm (   $data)
protected

Generates the HTML required to render the search form.

Parameters
array$dataThe data used to render the page
Returns
string
MinervaTemplate::getSecondaryActions ( )
protected

Get page secondary actions

MinervaTemplate::getSecondaryActionsHtml ( )
protected

Get HTML representing secondary page actions like language selector

Returns
string
MinervaTemplate::render (   $data)
protected

Render the entire page

Parameters
array$dataData used to build the page
Todo:
replace with template engines

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