Unclassified NewsBoard Code Reference

ListForums function

List forums (recursive)

function ListForums ($parent = 0, $level = 0, $addparent = -1, $editforum = -1, $showhidden = false);

Parameters:

parent  –  optional, default: 0
(int) toplevel forum id for this call
level  –  optional, default: 0
(int) 0,1,2: table/recursion level, for indenting
addparent  –  optional, default: -1
(int) forum id to show Add <form> in
editforum  –  optional, default: -1
(int) forum id to show Edit <form> for
showhidden  –  optional, default: false
(bool) include hidden forums in this list

Implementation file: unb_lib/main.inc.php, line 786

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.