ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
KeyName.php
Go to the documentation of this file.
1<?php
2
3namespace SAML2\XML\ds;
4
7
14{
20 public $name;
21
27 public function __construct(\DOMElement $xml = null)
28 {
29 if ($xml === null) {
30 return;
31 }
32
33 $this->name = $xml->textContent;
34 }
35
42 public function toXML(\DOMElement $parent)
43 {
44 assert(is_string($this->name));
45
46 return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:KeyName', $this->name);
47 }
48}
An exception for terminatinating execution or to throw for unit testing.
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
Definition: Utils.php:635
__construct(\DOMElement $xml=null)
Initialize a KeyName element.
Definition: KeyName.php:27
toXML(\DOMElement $parent)
Convert this KeyName element to XML.
Definition: KeyName.php:42
$xml
Definition: metadata.php:240