GridConnector Class Reference

Inheritance diagram for GridConnector:

Connector TreeGridConnector

List of all members.

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


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 Connector.

Reimplemented in TreeGridConnector.


Member Function Documentation

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

Parameters:
options array of options
ind index of related column in the grid
Returns:
options as XML string

output_xml (  ) 

output fetched data as XML

Reimplemented from Connector.

Reimplemented in TreeGridConnector.

parse_request (  ) 

parse incoming request, detects commands and modes

Reimplemented from Connector.

render (  ) 

render self

process commands, output requested data as XML

Reimplemented from Connector.

render_set ( res  ) 

render from DB resultset

Parameters:
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

Parameters:
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

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

Reimplemented from Connector.


Member Data Documentation

$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


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