From cac9d272c5219255a5f94232a8c61fcabc56c709 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 30 Nov 2004 13:41:19 +0000 Subject: [PATCH] Add developer-use test for contacts service class --- addressbook/svctest.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 addressbook/svctest.php diff --git a/addressbook/svctest.php b/addressbook/svctest.php new file mode 100755 index 0000000000..5960e2e21b --- /dev/null +++ b/addressbook/svctest.php @@ -0,0 +1,36 @@ + 'addressbook', + 'noheader' => True, + 'nonavbar' => True + ); + include('../header.inc.php'); + + $obj = CreateObject('phpgwapi.service'); + + /* Entire addressbook */ + $tmp = $obj->exec(array('contacts','read_list')); + echo '
Entire list:'; + _debug_array($tmp); + + /* Single entry with id of 182 */ + $tmp = $obj->exec(array('contacts','read',array('id' => 182))); + echo '
Single entry:'; + _debug_array($tmp); + + $GLOBALS['phpgw']->common->phpgw_footer(); +?>