Support for larger size codes (such as SNOMED US Extension codes)
[openemr.git] / gacl / soap / server.php
blobbfe131c4ed4f6835b232b6389ff9d6fcfd86ae99
1 <?php
2 /*
3 * MAKE SURE phpGACL's DEBUG IS DISABLED... Otherwise the SOAP server will break.
6 * Currently, only the acl_check() function is exported to the SOAP server.
8 */
11 * A small speed improvement can be made if you copy the $gacl_options array from gacl_admin.inc.php
12 * into this file, and only include the ../gacl.class.php file.
14 require_once('../admin/gacl_admin.inc.php');
15 require_once('nusoap.php');
17 $s = new soap_server;
19 $s->register('acl_check');
20 $s->register('test');
22 function acl_check($aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value=NULL, $axo_value=NULL, $root_aro_group_id=NULL, $root_axo_group_id=NULL) {
23 global $gacl;
25 return $gacl->acl_check($aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value, $axo_value, $root_aro_group_id, $root_axo_group_id);
28 function test($text) {
29 return $text;
32 $s->service($HTTP_RAW_POST_DATA);