ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\XML\ds\KeyName Class Reference
+ Collaboration diagram for SAML2\XML\ds\KeyName:

Public Member Functions

 __construct (\DOMElement $xml=null)
 Initialize a KeyName element. More...
 
 toXML (\DOMElement $parent)
 Convert this KeyName element to XML. More...
 

Data Fields

 $name
 

Detailed Description

Definition at line 13 of file KeyName.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\XML\ds\KeyName::__construct ( \DOMElement  $xml = null)

Initialize a KeyName element.

Parameters
\DOMElement | null$xmlThe XML element we should load.

Definition at line 27 of file KeyName.php.

References $xml.

28  {
29  if ($xml === null) {
30  return;
31  }
32 
33  $this->name = $xml->textContent;
34  }
$xml
Definition: metadata.php:240

Member Function Documentation

◆ toXML()

SAML2\XML\ds\KeyName::toXML ( \DOMElement  $parent)

Convert this KeyName element to XML.

Parameters
\DOMElement$parentThe element we should append this KeyName element to.
Returns

Definition at line 42 of file KeyName.php.

References SAML2\Utils\addString(), and RobRichards\XMLSecLibs\XMLSecurityDSig\XMLDSIGNS.

43  {
44  assert(is_string($this->name));
45 
46  return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:KeyName', $this->name);
47  }
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
Definition: Utils.php:635
+ Here is the call graph for this function:

Field Documentation

◆ $name

SAML2\XML\ds\KeyName::$name

Definition at line 20 of file KeyName.php.


The documentation for this class was generated from the following file: