TreeGridConnector Class Reference

Inheritance diagram for TreeGridConnector:

GridConnector Connector

List of all members.

Public Member Functions

 __construct ($res, $type="MySQL")
 parse_request_treegrid ()
 render_table ($table, $id, $field, $pid)
 render_sql ($sql, $id, $field, $pid)
 render_set ($res)
 output_xml ()

Private Attributes

 $dyn_load
 flag of branch loading mode
 $pid
 id of paretn element


Constructor & Destructor Documentation

__construct ( db,
type = "MySQL" 
)

constructor

Here initilization of all Masters occurs, execution timer initialized

Parameters:
db db connection resource
type string , which hold type of database ( MySQL or Postgre ), optional

Reimplemented from GridConnector.


Member Function Documentation

output_xml (  ) 

output fetched data as XML

Reimplemented from GridConnector.

parse_request_treegrid (  ) 

process treegrid specific options in incoming request

render_set ( res  ) 

render from DB resultset

Parameters:
res DB resultset process commands, output requested data as XML

Reimplemented from GridConnector.

render_sql ( sql,
id,
field,
pid 
)

config connector based on sql query

Parameters:
sql sql query used as base of configuration
id name of id field
field list of fields names
pid name of parent key field

render_table ( table,
id,
field,
pid 
)

config connector based on table

Parameters:
table name of table in DB
id name of id field
field list of fields names
pid name of parent key field


Member Data Documentation

$dyn_load [private]

flag of branch loading mode

$pid [private]

id of paretn element


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

Generated on Tue Mar 3 20:06:24 2009 for dhxmlXConnector by  doxygen 1.5.8