Definition at line 12 of file Parser.php.
◆ __construct()
SimpleSAML\XML\Parser::__construct |
( |
|
$xml | ) |
|
Definition at line 16 of file Parser.php.
References $xml.
19 $this->simplexml = new \SimpleXMLElement(
$xml);
20 $this->simplexml->registerXPathNamespace(
'saml2',
'urn:oasis:names:tc:SAML:2.0:assertion');
21 $this->simplexml->registerXPathNamespace(
'saml2meta',
'urn:oasis:names:tc:SAML:2.0:metadata');
22 $this->simplexml->registerXPathNamespace(
'ds',
'http://www.w3.org/2000/09/xmldsig#');
◆ fromSimpleXMLElement()
static SimpleSAML\XML\Parser::fromSimpleXMLElement |
( |
\SimpleXMLElement |
$element | ) |
|
|
static |
Definition at line 25 of file Parser.php.
References $parser.
29 $namespaces = $element->getNamespaces();
30 foreach ($namespaces as $prefix => $ns) {
31 $element[(($prefix ===
'') ?
'xmlns' :
'xmlns:' . $prefix)] = $ns;
◆ getValue()
SimpleSAML\XML\Parser::getValue |
( |
|
$xpath, |
|
|
|
$required = false |
|
) |
| |
◆ getValueAlternatives()
SimpleSAML\XML\Parser::getValueAlternatives |
( |
array |
$xpath, |
|
|
|
$required = false |
|
) |
| |
Definition at line 63 of file Parser.php.
References $x, and SimpleSAML\XML\Parser\getValue().
65 foreach ($xpath as
$x) {
72 throw new \Exception(
'Could not get value from XML document using multiple alternative XPath expressions.');
getValue($xpath, $required=false)
◆ getValueDefault()
SimpleSAML\XML\Parser::getValueDefault |
( |
|
$xpath, |
|
|
|
$defvalue |
|
) |
| |
◆ $simplexml
SimpleSAML\XML\Parser::$simplexml = null |
The documentation for this class was generated from the following file:
- libs/composer/vendor/simplesamlphp/simplesamlphp/lib/SimpleSAML/XML/Parser.php