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 |
__construct | ( | $ | db, | |
$ | type = "MySQL" | |||
) |
constructor
Here initilization of all Masters occurs, execution timer initialized
db | db connection resource | |
type | string , which hold type of database ( MySQL or Postgre ), optional |
Reimplemented from GridConnector.
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
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
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
table | name of table in DB | |
id | name of id field | |
field | list of fields names | |
pid | name of parent key field |
$dyn_load [private] |
flag of branch loading mode
$pid [private] |
id of paretn element