Public Member Functions | |
__construct ($res, $type="MySQL") | |
parse_request () | |
check_total () | |
customize_config () | |
render_table ($table, $id, $field) | |
render () | |
render_sql ($sql, $id, $field) | |
render_set ($res) | |
format_options ($options, $ind) | |
output_xml () | |
Protected Attributes | |
$filter | |
array of filtering rules | |
$sorting | |
array of sorting settings | |
$position | |
array which holds the position of view area in grid | |
$total_size | |
total count of records in grid |
__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 Connector.
Reimplemented in TreeGridConnector.
check_total | ( | ) |
get total count of record in grid, used in dyn. loading mode
customize_config | ( | ) |
customize config by rules and modes from incoming request
Reimplemented from Connector.
format_options | ( | $ | options, | |
$ | ind | |||
) |
output options for client side select_filter
options | array of options | |
ind | index of related column in the grid |
output_xml | ( | ) |
parse_request | ( | ) |
parse incoming request, detects commands and modes
Reimplemented from Connector.
render | ( | ) |
render_set | ( | $ | res | ) |
render from DB resultset
res | DB resultset process commands, output requested data as XML |
Reimplemented from Connector.
Reimplemented in TreeGridConnector.
render_sql | ( | $ | sql, | |
$ | id, | |||
$ | field | |||
) |
config connector based on table
sql | sql query used as base of configuration | |
id | name of id field | |
field | list of fields names |
Reimplemented from Connector.
render_table | ( | $ | table, | |
$ | id, | |||
$ | field | |||
) |
config connector based on table
table | name of table in DB | |
id | name of id field | |
field | list of fields names |
Reimplemented from Connector.
$filter [protected] |
array of filtering rules
$position [protected] |
array which holds the position of view area in grid
$sorting [protected] |
array of sorting settings
$total_size [protected] |
total count of records in grid