Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Utils\HtmlTabs Class Reference

Public Member Functions

 hasContents ()
 
 isRTL ( $isRTL)
 
 setActiveTab ( $activeTab)
 
 isSubTab ( $isSubTab=true)
 
 setGroup ( $group)
 
 buildHTML (array $attributes=[])
 
 html ( $html, array $params=[])
 
 tab ( $id, $name='', array $params=[])
 
 content ( $id, $content)
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Member Function Documentation

◆ buildHTML()

SMW\Utils\HtmlTabs::buildHTML ( array  $attributes = [])
Since
3.0
Parameters
array$attributes
Returns
string

◆ content()

SMW\Utils\HtmlTabs::content (   $id,
  $content 
)
Since
3.0
Parameters
string$id
string$content

◆ hasContents()

SMW\Utils\HtmlTabs::hasContents ( )
Since
3.2
Returns
bool

◆ html()

SMW\Utils\HtmlTabs::html (   $html,
array  $params = [] 
)
Since
3.0
Parameters
string$id
string$name
array$params
Returns
string

◆ isRTL()

SMW\Utils\HtmlTabs::isRTL (   $isRTL)
Since
3.0
Parameters
boolean$isRTL

◆ isSubTab()

SMW\Utils\HtmlTabs::isSubTab (   $isSubTab = true)

The MW Parser has issues with <section> that appear as part of a sub level which requires to have the content loaded via JS to be able to access the tab content.

Since
3.1
Parameters
boolean$isSubTab

◆ setActiveTab()

SMW\Utils\HtmlTabs::setActiveTab (   $activeTab)
Since
3.0
Parameters
string$activeTab

◆ setGroup()

SMW\Utils\HtmlTabs::setGroup (   $group)
Since
3.0
Parameters
string$group

◆ tab()

SMW\Utils\HtmlTabs::tab (   $id,
  $name = '',
array  $params = [] 
)
Since
3.0
Parameters
string$id
string$name
array$params
Returns
string

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

About | General disclaimer | Privacy policy