void node_start_code(
$nodeinfo)
|
|
To change behavior (look and feel :) of generated tree it is enough to redefine follwing methods..
(thanx that PHP have implicit vurtual functions :)
General layout of generated tree code looks like this:
[node start code] [node flipper code] (1) [node data start code] [node data end code] [node childs start code] (1) [node childs end code] (1) [node end code]
(1) -- this code will be generated if node have childs
NOTE: Methods called exactly in that order. This fact can be (and actualy do) used by child classes to define and use some variables depends on pervious call...
NOTE: This is abstract base class... it doing nothig except defining algirithm... So to make smth other use inheritance and redifine corresponding function :)
Overridden in child classes as:
- CatAdminTreeMaker::node_start_code()
- CatBrowseTreeMaker::node_start_code()
Parameters: