Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
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 (   $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 (   $item_id)
getItemContent (   $item_id)

returns html for the content body of the item

private

Parameters
string$item_id
Returns
string
getItemHead (   $item_id)

returns html for the name of the item

private

Parameters
string$item_id
Returns
string
getItemHeadFrontPic (   $item_id)
getItemHeadPics (   $item_id)

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

private

Parameters
string$item_id
Returns
string
getSelf (   $param = "")

returns script name

private

Parameters
string$param
Returns
string
openItem (   $item_id)
openRange (   $item_id)
printItemDetails (   $item_id)

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

private

Parameters
string$item_id
printItemOutput (   $item_id)

prints out one item

private

Parameters
string$item_id
printLevelOutput (   $item_id)

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

private

Parameters
string$item_id
showTree (   $item_id = "root")

prints out the tree beginning with a given item

public

Parameters
string$item_id

Field Documentation

string $anchor

contains the item with the current html anchor

public

string $max_cols = 80

the maximum amount of columns in a title

public

array $open_items

array containing all open items

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

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_open
string $root_content

the content of the root element

public

string $start_item_id

the item to start with

private

object StudipRangeTree $tree

Reference to the tree structure

private

string $tree_class_name

name of used tree class

private

boolean $use_aging = false

draw red icons

public


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