blob: 66e3a7986a643a46ca52afbe9dfcb44b820ec529 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
/**
* Class representing unknown RoleDescriptors.
*
* @package simpleSAMLphp
* @version $Id$
*/
class SAML2_XML_md_UnknownRoleDescriptor extends SAML2_XML_md_RoleDescriptor {
/**
* This RoleDescriptor as XML
*
* @var SAML2_XML_Chunk
*/
private $xml;
/**
* Initialize an unknown RoleDescriptor.
*
* @param DOMElement $xml The XML element we should load.
*/
public function __construct(DOMElement $xml) {
parent::__construct('md:RoleDescriptor', $xml);
$this->xml = new SAML2_XML_Chunk($xml);
}
/**
* Add this RoleDescriptor to an EntityDescriptor.
*
* @param DOMElement $parent The EntityDescriptor we should append this RoleDescriptor to.
*/
public function toXML(DOMElement $parent) {
$this->xml->toXML($parent);
}
}
|