Stud.IP  5.4
TreeView Class Reference
Inheritance diagram for TreeView:
StudipRangeTreeView StudipRangeTreeViewAdmin StudipSemTreeView StudipSemTreeViewAdmin

Public Member Functions

 __construct ($tree_class_name, $args=null)
 
 openItem ($item_id)
 
 openRange ($item_id)
 
 showTree ($item_id="root")
 
 printLevelOutput ($item_id)
 
 printItemOutput ($item_id)
 
 printItemDetails ($item_id)
 
 getItemHeadPics ($item_id)
 
 getItemHeadFrontPic ($item_id)
 
 getItemHead ($item_id)
 
 getItemContent ($item_id)
 
 getAgingColor ($item_id)
 
 getSelf ($param="")
 

Data Fields

 $tree
 
 $tree_class_name
 
 $anchor
 
 $open_items
 
 $open_ranges
 
 $start_item_id
 
 $root_content
 
 $max_cols = 80
 
 $use_aging = false
 
 $pic_open
 
 $pic_close
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $tree_class_name,
  $args = null 
)

constructor

public

Parameters
string$tree_class_namename of used tree class
mixed$argsargument passed to the tree class

Member Function Documentation

◆ getAgingColor()

getAgingColor (   $item_id)

◆ getItemContent()

getItemContent (   $item_id)

returns html for the content body of the item

private

Parameters
string$item_id
Returns
string

◆ getItemHead()

getItemHead (   $item_id)

returns html for the name of the item

private

Parameters
string$item_id
Returns
string

◆ getItemHeadFrontPic()

getItemHeadFrontPic (   $item_id)

◆ getItemHeadPics()

getItemHeadPics (   $item_id)

returns html for the icons in front of the name of the item

private

Parameters
string$item_id
Returns
string

◆ getSelf()

getSelf (   $param = "")

returns script name

private

Parameters
string$param
Returns
string

◆ openItem()

openItem (   $item_id)

◆ openRange()

openRange (   $item_id)

◆ printItemDetails()

printItemDetails (   $item_id)

prints out the details for an item, if item is open

private

Parameters
string$item_id

◆ printItemOutput()

printItemOutput (   $item_id)

prints out one item

private

Parameters
string$item_id

◆ printLevelOutput()

printLevelOutput (   $item_id)

prints out the lines before an item ("Strichlogik" (c) rstockm)

private

Parameters
string$item_id

◆ showTree()

showTree (   $item_id = "root")

prints out the tree beginning with a given item

public

Parameters
string$item_id

Field Documentation

◆ $anchor

string $anchor

contains the item with the current html anchor

public

◆ $max_cols

string $max_cols = 80

the maximum amount of columns in a title

public

◆ $open_items

array $open_items

array containing all open items

this is a reference to a global session variable, managed by PHPLib public

◆ $open_ranges

array $open_ranges

array containing all open item nodes

this is a reference to a global session variable, managed by PHPLib public

◆ $pic_close

$pic_close

◆ $pic_open

$pic_open

◆ $root_content

string $root_content

the content of the root element

public

◆ $start_item_id

string $start_item_id

the item to start with

private

◆ $tree

object StudipRangeTree $tree

Reference to the tree structure

private

◆ $tree_class_name

string $tree_class_name

name of used tree class

private

◆ $use_aging

boolean $use_aging = false

draw red icons

public


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