Public Member Functions | |
__construct ($db, $logger, $event, $sql, $access) | |
check_exts ($action, $mode) | |
data_update ($action) | |
data_delete ($action) | |
data_insert ($action) | |
output_edit ($results) | |
get_post_values ($ids) | |
process ($form=false) | |
name_data ($data) | |
Protected Member Functions | |
status_to_mode ($status) | |
inner_process ($status, $id, $data, $master=false) | |
Protected Attributes | |
$event | |
EventMaster object. | |
$sql | |
SQLMaster object. | |
$access | |
AccessMaster object. | |
$db | |
DBWrapper object. | |
$logger | |
LogMaster object. |
__construct | ( | $ | db, | |
$ | logger, | |||
$ | event, | |||
$ | sql, | |||
$ | access | |||
) |
constructor
db | DBWrapper object | |
logger | LogMaster object | |
event | EventMaster object | |
sql | SQLMaster object | |
access | AccessMaster object |
check_exts | ( | $ | action, | |
$ | mode | |||
) |
check if some event or sql code intercepts processing
action | DataAction object | |
mode | name of inner mode ( will be used to generate event names ) |
data_delete | ( | $ | action | ) |
data_insert | ( | $ | action | ) |
data_update | ( | $ | action | ) |
execute update action
If confirmation mode enabled and no record was affected by update, insert action executed
action | DataAction object |
get_post_values | ( | $ | ids | ) |
converts POST request to ID based hash of records longer description
ids | list of possible ID values, expected in request |
Reimplemented in GridDataProcessor, TreeDataProcessor, and TreeGridDataProcessor.
inner_process | ( | $ | status, | |
$ | id, | |||
$ | data, | |||
$ | master = false | |||
) | [protected] |
process data updated request received
status | string with name of procession mode | |
id | id of record to be processed | |
data | hash of record related data | |
master | master record, optional |
name_data | ( | $ | data | ) |
convert array of data to named hash, based on protocol conventions
data | array of data |
Reimplemented in FormDataProcessor, GridDataProcessor, TreeDataProcessor, and TreeGridDataProcessor.
output_edit | ( | $ | results | ) |
process | ( | $ | form = false |
) |
process incoming request
execute actions for all incoming data, print XML report for client side code
form | linked FormConnector, optional |
Reimplemented in GridDataProcessor, TreeDataProcessor, and TreeGridDataProcessor.
status_to_mode | ( | $ | status | ) | [protected] |
converts status string to the inner mode
status | external status string |
$access [protected] |
AccessMaster object.
$db [protected] |
DBWrapper object.
$event [protected] |
EventMaster object.
$logger [protected] |
LogMaster object.
$sql [protected] |
SQLMaster object.