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

Public Member Functions

 RangeTreeObject ($item_id)
 getAllItemKids ($as_value_list=false)
 getAllObjectKids ($as_value_list=false)
 getInstKids ($as_value_list=false)
 getFakKids ($as_value_list=false)
 getAdminRange ()
 isInCorrectBranch ()
 getItemPath ()
 initItemDetail ()
 fetchCategories ()
getCategories ()
 fetchNumStaff ()
 getNumStaff ()
 getValueList ($list)

Static Public Member Functions

 GetInstance ($item_id)

Data Fields

 $tree_item_id
 $tree
 $item_data = null
 $item_data_mapping = null

Member Function Documentation

fetchCategories ( )

fetch categories of this object from database

the categories are appended to the $item_data array, key 'categories', value is object of type DbSnapshot private

Returns
boolean true if categories were found

Here is the caller graph for this function:

fetchNumStaff ( )

Here is the caller graph for this function:

getAdminRange ( )

Returns array of Stud.IP range_ids of "real" objects

This function is a wrapper for the according function in StudipRangeTree

See Also
StudipRangeTree::getAdminRange() public
Returns
array of primary keys from table "institute"
getAllItemKids (   $as_value_list = false)

Returns all tree items which are kids of this object

public

Parameters
boolean$as_value_list
Returns
mixed returns numeric array if param is false, else comma separated string

Here is the call graph for this function:

getAllObjectKids (   $as_value_list = false)

Returns all tree items which are kids of this object and are "real" Stud.IP objects

public

Parameters
boolean$as_value_list
Returns
mixed returns numeric array if param is false, else comma separated string

Here is the call graph for this function:

& getCategories ( )

getter method for categories of this object

public

Returns
object DbSnapshot

Here is the call graph for this function:

getFakKids (   $as_value_list = false)

Returns all tree items which are kids of this object and are Stud.IP "Fakultaeten"

public

Parameters
boolean$as_value_list
Returns
mixed returns numeric array if param is false, else comma separated string

Here is the call graph for this function:

Here is the caller graph for this function:

GetInstance (   $item_id)
static

Factory method

public

Parameters
string$item_id
Returns
object RangeTreeObject

Here is the caller graph for this function:

getInstKids (   $as_value_list = false)

Returns all tree items which are kids of this object and are Stud.IP "Einrichtungen"

public

Parameters
boolean$as_value_list
Returns
mixed returns numeric array if param is false, else comma separated string

Here is the call graph for this function:

Here is the caller graph for this function:

getItemPath ( )

Returns tree path of the current object

This function is a wrapper for the according function in StudipRangeTree

See Also
StudipRangeTree::getItemPath() public
Returns
string
getNumStaff ( )

Here is the call graph for this function:

getValueList (   $list)

transform numerical array into a comma separated string

the result could be used in a SQL query private

Parameters
array$list
Returns
string

Here is the caller graph for this function:

initItemDetail ( )

extends the $item_data array

This function fills the $item_data array with fields from the according database table (is of no use in the base class) private

Here is the caller graph for this function:

isInCorrectBranch ( )

Only useful in RangeTreeObjectInst ,all other items are always in the correct branch

public

Returns
bool

Reimplemented in RangeTreeObjectInst.

RangeTreeObject (   $item_id)

Constructor

Do not use directly, call factory method instead private

Parameters
string$item_id

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

array $item_data = null

associative array with data from database fields

public

array $item_data_mapping = null

associative array with mapping for database fields

public

object StudipRangeTree $tree

References the tree object

private

string $tree_item_id

item_id in range_tree

public


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