public static function Utilities::extractStrings in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
2 calls to Utilities::extractStrings()
- SAML2_Assertion::parseAuthnContext in includes/
Assertion.php - Parse AuthnContext in AuthnStatement.
- SAML2_Assertion::parseConditions in includes/
Assertion.php - Parse conditions in assertion.
File
- includes/
Utilities.php, line 756
Class
- Utilities
- This file is part of miniOrange SAML plugin.
Code
public static function extractStrings(DOMElement $parent, $namespaceURI, $localName) {
//assert('is_string($namespaceURI)');
//assert('is_string($localName)');
$ret = array();
for ($node = $parent->firstChild; $node !== NULL; $node = $node->nextSibling) {
if ($node->namespaceURI !== $namespaceURI || $node->localName !== $localName) {
continue;
}
$ret[] = trim($node->textContent);
}
return $ret;
}