22    public static function getList(\DOMElement $parent)
 
   25        foreach (
Utils::xpQuery($parent, 
'./saml_protocol:Extensions/*') as $node) {
 
   38    public static function addList(\DOMElement $parent, array $extensions)
 
   40        if (empty($extensions)) {
 
   44        $extElement = $parent->ownerDocument->createElementNS(
Constants::NS_SAMLP, 
'samlp:Extensions');
 
   45        $parent->appendChild($extElement);
 
   47        foreach ($extensions as $ext) {
 
   48            $ext->toXML($extElement);
 
An exception for terminatinating execution or to throw for unit testing.
const NS_SAMLP
The namespace for the SAML 2 protocol.
static xpQuery(\DOMNode $node, $query)
Do an XPath query on an XML node.
static getList(\DOMElement $parent)
Get a list of Extensions in the given element.
static addList(\DOMElement $parent, array $extensions)
Add a list of Extensions to the given element.