- function show_service($type, $uri, $params=NULL, $sigs=NULL, $localId=NULL) {
- common_element_start('Service');
- if ($uri) {
- common_element('URI', NULL, $uri);
- }
- common_element('Type', NULL, $type);
- if ($params) {
- foreach ($params as $param) {
- common_element('Type', NULL, $param);
- }
- }
- if ($sigs) {
- foreach ($sigs as $sig) {
- common_element('Type', NULL, $sig);
- }
- }
- if ($localId) {
- common_element('LocalID', NULL, $localId);
- }
- common_element_end('Service');
- }
+ function show_service($type, $uri, $params=null, $sigs=null, $localId=null)
+ {
+ common_element_start('Service');
+ if ($uri) {
+ common_element('URI', null, $uri);
+ }
+ common_element('Type', null, $type);
+ if ($params) {
+ foreach ($params as $param) {
+ common_element('Type', null, $param);
+ }
+ }
+ if ($sigs) {
+ foreach ($sigs as $sig) {
+ common_element('Type', null, $sig);
+ }
+ }
+ if ($localId) {
+ common_element('LocalID', null, $localId);
+ }
+ common_element_end('Service');
+ }