-
Notifications
You must be signed in to change notification settings - Fork 35
icms_view_Tree
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
Handles all tree functions within ImpressCMS
- Class name: icms_view_Tree
- Namespace:
public string $table
- Visibility: public
public string $id
- Visibility: public
public string $pid
- Visibility: public
public string $order
- Visibility: public
public string $title
- Visibility: public
private object $db
- Visibility: private
mixed icms_view_Tree::__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
- Visibility: public
- table_name string - <p>Name of table containing the parent-child structure</p>
- id_name string - <p>Name of the unique id field in the table</p>
- pid_name mixed - <p>Name of the parent id field in the table</p>
mixed icms_view_Tree::__get(string name)
Overloading method to allow access to private properties outside the class
Instead of creating separate methods for each private property, this allows you to access (read) the properties and still keep them from being written from the public scope
- Visibility: public
- name string
array icms_view_Tree::getFirstChild(int sel_id, string order)
Returns an array of first child objects for a given id($sel_id)
- Visibility: public
- sel_id int
- order string - <p>Sort field for the list</p>
array icms_view_Tree::getFirstChildId(int sel_id)
Returns an array of all FIRST child ids of a given id($sel_id)
- Visibility: public
- sel_id int
array icms_view_Tree::getAllChildId(int sel_id, string order, array idarray)
Returns an array of ALL child ids for a given id($sel_id)
- Visibility: public
- sel_id int
- order string - <p>Sort field for the list</p>
- idarray array
array icms_view_Tree::getAllParentId(int sel_id, string order, array idarray)
Returns an array of ALL parent ids for a given id($sel_id)
- Visibility: public
- sel_id int
- order string
- idarray array
string icms_view_Tree::getPathFromId(int sel_id, string title, string path)
Generates path from the root id to a given id($sel_id) the path is delimited with "/"
- Visibility: public
- sel_id int
- title string
- path string
mixed icms_view_Tree::makeMySelBox(string title, string order, int preset_id, int none, string sel_name, string onchange)
Makes a nicely ordered selection box
- Visibility: public
- title string - <p>Field containing the items to display in the list</p>
- order string - <p>Sort order of the options</p>
- preset_id int - <p>is used to specify a preselected item</p>
- none int - <p>set to 1 to add an option with value 0</p>
- sel_name string - <p>Name of the select element</p>
- onchange string - <p>Action to take when the selection is changed</p>
mixed icms_view_Tree::getNicePathFromId(int sel_id, string title, string funcURL, string path, string separator)
Generates nicely formatted linked path from the root id to a given id
- Visibility: public
- sel_id int
- title string
- funcURL string
- path string
- separator string - <p>Allows custom designation of separator in linked path $return string $path</p>
string icms_view_Tree::getIdPathFromId(int sel_id, string path)
Generates id path from the root id to a given id the path is delimited with "/"
- Visibility: public
- sel_id int
- path string
array icms_view_Tree::getAllChild(int sel_id, string order, array parray)
- Visibility: public
- sel_id int
- order string
- parray array
array icms_view_Tree::getChildTreeArray(int sel_id, string order, array parray, string r_prefix)
- Visibility: public
- sel_id int
- order string
- parray array
- r_prefix string