ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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