BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Skins\Chameleon\Menu\MenuFromLines Class Reference
Inheritance diagram for Skins\Chameleon\Menu\MenuFromLines:
Collaboration diagram for Skins\Chameleon\Menu\MenuFromLines:

Public Member Functions

 __construct (&$lines, $inContentLanguage=false, $itemData=null)
 
 getHtml ()
 
 parseLines ()
 
- Public Member Functions inherited from Skins\Chameleon\Menu\Menu
 getHtml ()
 
 getMenuItemFormatter ()
 
 setMenuItemFormatter ($menuItemFormatter)
 
 getItemListFormatter ()
 
 setItemListFormatter ($itemListFormatter)
 

Protected Member Functions

 getNextLine ()
 
 parseOneLine ($rawLine)
 
 extractDepthAndLine ($rawLine)
 
 extractHrefAndLinkText ($linkDescription)
 
 getTextFromMessageName ($messageName)
 
 getHrefForTarget ($linkTarget)
 
 getHrefForWikiPage ($linkTarget)
 
 createChildAndParseNextLine ($subItemData)
 
 buildHtml ()
 
 buildSubmenuHtml ()
 
- Protected Member Functions inherited from Skins\Chameleon\Menu\Menu
 getHtmlForMenuItem ($href, $text, $depth, $subitems)
 
 getHtmlForMenuItemList ($rawItemsHtml, $depth)
 

Detailed Description

Class MenuFromLines

Author
Stephan Gambke
Since
1.0

Constructor & Destructor Documentation

Skins\Chameleon\Menu\MenuFromLines::__construct ( $lines,
  $inContentLanguage = false,
  $itemData = null 
)
Parameters
string[]$lines
bool$inContentLanguage
null|string[]$itemData

Member Function Documentation

Skins\Chameleon\Menu\MenuFromLines::buildHtml ( )
protected
Returns
string
Skins\Chameleon\Menu\MenuFromLines::buildSubmenuHtml ( )
protected
Returns
string
Skins\Chameleon\Menu\MenuFromLines::createChildAndParseNextLine (   $subItemData)
protected
Parameters
string[]$subItemData
Returns
null|string[]
Skins\Chameleon\Menu\MenuFromLines::extractDepthAndLine (   $rawLine)
protected
Parameters
string$rawLine
Returns
array
Skins\Chameleon\Menu\MenuFromLines::extractHrefAndLinkText (   $linkDescription)
protected
Parameters
$linkDescription
Returns
array
Skins\Chameleon\Menu\MenuFromLines::getHrefForTarget (   $linkTarget)
protected
Parameters
string$linkTarget
Returns
string
Exceptions
\MWException
Skins\Chameleon\Menu\MenuFromLines::getHrefForWikiPage (   $linkTarget)
protected
Parameters
string$linkTarget
Returns
string
Exceptions
\MWException
Skins\Chameleon\Menu\MenuFromLines::getHtml ( )
Returns
string
Skins\Chameleon\Menu\MenuFromLines::getNextLine ( )
protected
Returns
string
Skins\Chameleon\Menu\MenuFromLines::getTextFromMessageName (   $messageName)
protected
Parameters
string$messageName
Returns
string
Skins\Chameleon\Menu\MenuFromLines::parseLines ( )
Returns
string[]|null
Skins\Chameleon\Menu\MenuFromLines::parseOneLine (   $rawLine)
protected

Will return an array of the form array( 'text' => $text, // link text 'href' => $href, // parsed link target 'depth' => $depth );

Parameters
string$rawLine
Returns
array

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