ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SAML2\XML\mdattr\EntityAttributes Class Reference
+ Collaboration diagram for SAML2\XML\mdattr\EntityAttributes:

Public Member Functions

 __construct (\DOMElement $xml=null)
 Create a EntityAttributes element. More...
 

Data Fields

const NS = 'urn:oasis:names:tc:SAML:metadata:attribute'
 The namespace used for the EntityAttributes extension. More...
 
 $children
 

Detailed Description

Definition at line 15 of file EntityAttributes.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\XML\mdattr\EntityAttributes::__construct ( \DOMElement  $xml = null)

Create a EntityAttributes element.

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

Definition at line 36 of file EntityAttributes.php.

References $xml, SAML2\XML\mdattr\EntityAttributes\NS, and SAML2\Utils\xpQuery().

37  {
38  if ($xml === null) {
39  return;
40  }
41 
42  foreach (Utils::xpQuery($xml, './saml_assertion:Attribute|./saml_assertion:Assertion') as $node) {
43  if ($node->localName === 'Attribute') {
44  $this->children[] = new Attribute($node);
45  } else {
46  $this->children[] = new Chunk($node);
47  }
48  }
49  }
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
Definition: Utils.php:191
+ Here is the call graph for this function:

Field Documentation

◆ $children

SAML2\XML\mdattr\EntityAttributes::$children

Definition at line 29 of file EntityAttributes.php.

◆ NS

const SAML2\XML\mdattr\EntityAttributes::NS = 'urn:oasis:names:tc:SAML:metadata:attribute'

The namespace used for the EntityAttributes extension.

Definition at line 20 of file EntityAttributes.php.

Referenced by SAML2\XML\mdattr\EntityAttributes\__construct(), and SAML2\XML\md\Extensions\getList().


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