Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
TreeView Class Reference
Inheritance diagram for TreeView:
Inheritance graph
Collaboration diagram for TreeView:
Collaboration graph

Public Member Functions

 TreeView ($tree_class_name, $args=null)
 handleOpenRanges ()
 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

Member Function Documentation

getAgingColor (   $item_id)

Here is the caller graph for this function:

getItemContent (   $item_id)

returns html for the content body of the item

private

Parameters
string$item_id
Returns
string

Reimplemented in StudipRangeTreeViewAdmin, StudipSemTreeViewAdmin, StudipLitListViewAdmin, StudipSemTreeView, and StudipRangeTreeView.

Here is the call graph for this function:

Here is the caller graph for this function:

getItemHead (   $item_id)

returns html for the name of the item

private

Parameters
string$item_id
Returns
string

Reimplemented in StudipSemTreeViewAdmin, StudipRangeTreeViewAdmin, StudipLitListViewAdmin, and StudipSemTreeView.

Here is the call graph for this function:

Here is the caller graph for this function:

getItemHeadFrontPic (   $item_id)

Here is the call graph for this function:

Here is the caller graph for this function:

getItemHeadPics (   $item_id)

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

private

Parameters
string$item_id
Returns
string

Reimplemented in StudipLitListViewAdmin, StudipSemTreeViewAdmin, and StudipSemTreeView.

Here is the call graph for this function:

Here is the caller graph for this function:

getSelf (   $param = "")

returns script name

private

Parameters
string$param
Returns
string

Reimplemented in StudipRangeTreeViewAdmin, and StudipLitListViewAdmin.

Here is the call graph for this function:

Here is the caller graph for this function:

handleOpenRanges ( )

manages the link parameters used for the open/close thing

private

Reimplemented in StudipSemTreeViewAdmin, and StudipSemTreeView.

Here is the caller graph for this function:

openItem (   $item_id)

Reimplemented in StudipSemTreeViewAdmin.

Here is the call graph for this function:

openRange (   $item_id)

Here is the caller graph for this function:

printItemDetails (   $item_id)

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

private

Parameters
string$item_id

Here is the call graph for this function:

Here is the caller graph for this function:

printItemOutput (   $item_id)

prints out one item

private

Parameters
string$item_id

Here is the call graph for this function:

Here is the caller graph for this function:

printLevelOutput (   $item_id)

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

private

Parameters
string$item_id

Here is the caller graph for this function:

showTree (   $item_id = "root")

prints out the tree beginning with a given item

public

Parameters
string$item_id

Here is the call graph for this function:

Here is the caller graph for this function:

TreeView (   $tree_class_name,
  $args = null 
)

constructor

public

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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: