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

Static Public Member Functions

static getList (\DOMElement $parent)
 Get a list of Extensions in the given element. More...
 
static addList (\DOMElement $parent, array $extensions)
 Add a list of Extensions to the given element. More...
 

Detailed Description

Definition at line 14 of file Extensions.php.

Member Function Documentation

◆ addList()

static SAML2\XML\samlp\Extensions::addList ( \DOMElement  $parent,
array  $extensions 
)
static

Add a list of Extensions to the given element.

Parameters
\DOMElement$parentThe element we should add the extensions to.

Definition at line 38 of file Extensions.php.

References SAML2\Constants\NS_SAMLP.

39  {
40  if (empty($extensions)) {
41  return;
42  }
43 
44  $extElement = $parent->ownerDocument->createElementNS(Constants::NS_SAMLP, 'samlp:Extensions');
45  $parent->appendChild($extElement);
46 
47  foreach ($extensions as $ext) {
48  $ext->toXML($extElement);
49  }
50  }
const NS_SAMLP
The namespace for the SAML 2 protocol.
Definition: Constants.php:215

◆ getList()

static SAML2\XML\samlp\Extensions::getList ( \DOMElement  $parent)
static

Get a list of Extensions in the given element.

Parameters
\DOMElement$parentThe element that may contain the samlp:Extensions element.
Returns
array Array of extensions.

Definition at line 22 of file Extensions.php.

References $ret, array, and SAML2\Utils\xpQuery().

23  {
24  $ret = array();
25  foreach (Utils::xpQuery($parent, './saml_protocol:Extensions/*') as $node) {
26  $ret[] = new Chunk($node);
27  }
28 
29  return $ret;
30  }
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
Definition: Utils.php:191
Create styles array
The data for the language used.
$ret
Definition: parser.php:6
+ Here is the call graph for this function:

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