You are here

public static function Utilities::extractStrings in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

2 calls to Utilities::extractStrings()
SAML2_Assertion::parseAuthnContext in src/SAML2_Assertion.php
Parse AuthnContext in AuthnStatement.
SAML2_Assertion::parseConditions in src/SAML2_Assertion.php
Parse conditions in assertion.

File

src/Utilities.php, line 355

Class

Utilities
This file is part of miniOrange SAML plugin.

Namespace

Drupal\miniorange_saml

Code

public static function extractStrings(DOMElement $parent, $namespaceURI, $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;
}