ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Endpoint.php
Go to the documentation of this file.
1<?php
8{
15 public static function appendXML(DOMElement $parent, $name, $address)
16 {
17 assert('is_string($name)');
18 assert('is_string($address)');
19
20 $e = $parent->ownerDocument->createElement($name);
21 $parent->appendChild($e);
22
23 $endpoint = $parent->ownerDocument->createElement('EndpointReference');
24 $endpoint->setAttribute('xmlns', 'http://www.w3.org/2005/08/addressing');
25 $e->appendChild($endpoint);
26
27 $address = $parent->ownerDocument->createElement('Address', $address);
28 $endpoint->appendChild($address);
29
30 return $e;
31 }
32}
$endpoint
An exception for terminatinating execution or to throw for unit testing.
static appendXML(DOMElement $parent, $name, $address)
Add this endpoint to an XML element.
Definition: Endpoint.php:15
if($format !==null) $name
Definition: metadata.php:146