Class icms_view_Tree
Class icms_view_Tree
Category: ICMS
Copyright: Copyright (c) 2000 XOOPS.org
License: LICENSE.txt
Author: Kazumi Ono (AKA onokazu)
Located at view/Tree.php
public
|
#
__construct( string $table_name, string $id_name, $pid_name )
Constructor of class icms_view_Tree Sets the names of table, unique id, and parent id |
public
|
|
public
array
|
#
getFirstChild( integer $sel_id, string $order = '' )
Returns an array of first child objects for a given id($sel_id) |
public
array
|
|
public
array
|
#
getAllChildId( integer $sel_id, string $order = '', array $idarray = array() )
Returns an array of ALL child ids for a given id($sel_id) |
public
array
|
#
getAllParentId( integer $sel_id, string $order = '', array $idarray = array() )
Returns an array of ALL parent ids for a given id($sel_id) |
public
string
|
#
getPathFromId( integer $sel_id, string $title, string $path = '' )
Generates path from the root id to a given id($sel_id) the path is delimited with "/" |
public
|
#
makeMySelBox( string $title, string $order = '', integer $preset_id = 0, integer $none = 0, string $sel_name = '', string $onchange = "" )
Makes a nicely ordered selection box |
public
|
#
getNicePathFromId( integer $sel_id, string $title, string $funcURL, string $path = '', string $separator = _BRDCRMB_SEP )
Generates nicely formatted linked path from the root id to a given id |
public
string
|
#
getIdPathFromId( integer $sel_id, string $path = "" )
Generates id path from the root id to a given id the path is delimited with "/" |
public
array
|
|
public
array
|
#
getChildTreeArray( integer $sel_id = 0, string $order = '', array $parray = array(), string $r_prefix = '' )
|
public
string
|
$table
table with parent-child structure |
|
public
string
|
$id
name of unique id for records in table $table |
|
public
string
|
$pid
name of parent id used in table $table |
|
public
string
|
$order
specifies the order of query results |
|
public
string
|
$title
name of a field in table $table which will be used when selection box and paths are generated |