Stud.IP  jlu_3.3 Revision
Helpbar Class Reference
Inheritance diagram for Helpbar:
Inheritance graph
Collaboration diagram for Helpbar:
Collaboration graph

Public Member Functions

 __construct ()
 
 loadContent ()
 
 setVariables ($variables)
 
 load ($identifier, $variables=array(), $language=null)
 
 addPlainText ($label, $text, $icon=null, $edit_link=null, $delete_link=null, $add_link=null)
 
 addText ($label, $id)
 
 addLink ($label, $url, $icon=false, $target=false, $attributes=array())
 
 insertLink ($label, $url, $icon=false, $target=false, $attributes=array())
 
 open ($state=true)
 
 shouldRender ($state=true)
 
 render ()
 
- Public Member Functions inherited from WidgetContainer
 addWidget (Widget $widget, $index=null)
 
 insertWidget (Widget $widget, $before_index, $index=null)
 
 getWidget ($index)
 
 getWidgets ()
 
 removeWidget ($index)
 
 hasWidgets ()
 
 hasWidget ($index)
 
 render ()
 

Protected Member Functions

 interpolate ($string, $variables=array())
 
 __construct ()
 

Protected Attributes

 $json_directory
 
 $open = false
 
 $should_render = true
 
 $variables = array()
 
- Protected Attributes inherited from WidgetContainer
 $widgets = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from WidgetContainer
static Get ()
 
- Static Protected Attributes inherited from WidgetContainer
static $instances = null
 

Detailed Description

Help section

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m @license GPL 2 or later
Since
3.1

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Private constructor to ensure that the singleton Get() method is always used.

See also
WidgetContainer::Get

Reimplemented from WidgetContainer.

Here is the call graph for this function:

Member Function Documentation

◆ addLink()

addLink (   $label,
  $url,
  $icon = false,
  $target = false,
  $attributes = array() 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addPlainText()

addPlainText (   $label,
  $text,
  $icon = null,
  $edit_link = null,
  $delete_link = null,
  $add_link = null 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addText()

addText (   $label,
  $id 
)
Here is the call graph for this function:

◆ insertLink()

insertLink (   $label,
  $url,
  $icon = false,
  $target = false,
  $attributes = array() 
)
Here is the call graph for this function:

◆ interpolate()

interpolate (   $string,
  $variables = array() 
)
protected
Here is the caller graph for this function:

◆ load()

load (   $identifier,
  $variables = array(),
  $language = null 
)
Todo:
Adjust this to db BEFORE release
Here is the call graph for this function:

◆ loadContent()

loadContent ( )

load help content from db

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open()

open (   $state = true)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

render ( )

Renders the help bar. The helpbar will only be rendered if it actually contains any widgets. It will use the template "helpbar.php" located at "templates/helpbar". A notification is dispatched before and after the actual rendering process.

Returns
String The HTML code of the rendered helpbar.

Reimplemented from WidgetContainer.

Here is the call graph for this function:

◆ setVariables()

setVariables (   $variables)

set variables for help content

◆ shouldRender()

shouldRender (   $state = true)

Field Documentation

◆ $json_directory

$json_directory
protected

◆ $open

$open = false
protected

◆ $should_render

$should_render = true
protected

◆ $variables

$variables = array()
protected

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