From 51d786ab8bfa0e964ebd182a106d34a6285671de Mon Sep 17 00:00:00 2001 From: abijah Date: Wed, 15 Jul 2009 07:44:51 +0000 Subject: [PATCH] Added generic mechanism to add userdata to the grid results. A 'userdata' callout function would be nice, but in practice, userdata may get added anywhere along the line, which is much easier than trying to figure out when to call such a callout and what parameters it would need to be passed. git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@338 97e9348a-65ac-dc4b-aefc-98561f571b83 --- app_controller.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app_controller.php b/app_controller.php index 050d8ae..504741a 100644 --- a/app_controller.php +++ b/app_controller.php @@ -403,6 +403,11 @@ class AppController extends Controller { echo " $page\n"; echo " $total\n"; echo " $records\n"; + + if (isset($params['userdata'])) { + foreach ($params['userdata'] AS $field => $value) + echo ' ' . "{$value}\n"; + } } function jqGridDataOutputRecords(&$params, &$model, &$records) {