ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\XML\Chunk Class Reference
+ Inheritance diagram for SAML2\XML\Chunk:
+ Collaboration diagram for SAML2\XML\Chunk:

Public Member Functions

 __construct (\DOMElement $xml)
 Create a XMLChunk from a copy of the given . More...
 
 getXML ()
 Get this . More...
 
 toXML (\DOMElement $parent)
 Append this XML element to a different XML element. More...
 
 serialize ()
 Serialize this XML chunk. More...
 
 unserialize ($serialized)
 Un-serialize this XML chunk. More...
 

Data Fields

 $localName
 
 $namespaceURI
 
 $xml
 

Detailed Description

Definition at line 13 of file Chunk.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\XML\Chunk::__construct ( \DOMElement  $xml)

Create a XMLChunk from a copy of the given .

Parameters
\DOMElement$xmlThe element we should copy.

Definition at line 41 of file Chunk.php.

42  {
43  $this->localName = $xml->localName;
44  $this->namespaceURI = $xml->namespaceURI;
45 
46  $this->xml = Utils::copyElement($xml);
47  }

Member Function Documentation

◆ getXML()

SAML2\XML\Chunk::getXML ( )

Get this .

Returns
This element.
Deprecated:

Definition at line 55 of file Chunk.php.

References SAML2\XML\Chunk\$xml.

56  {
57  return $this->xml;
58  }

◆ serialize()

SAML2\XML\Chunk::serialize ( )

Serialize this XML chunk.

Returns
string The serialized chunk.

Definition at line 76 of file Chunk.php.

77  {
78  return serialize($this->xml->ownerDocument->saveXML($this->xml));
79  }
serialize()
Serialize this XML chunk.
Definition: Chunk.php:76

◆ toXML()

SAML2\XML\Chunk::toXML ( \DOMElement  $parent)

Append this XML element to a different XML element.

Parameters
\DOMElement$parentThe element we should append this element to.
Returns
The new element.

Definition at line 66 of file Chunk.php.

67  {
68  return Utils::copyElement($this->xml, $parent);
69  }

◆ unserialize()

SAML2\XML\Chunk::unserialize (   $serialized)

Un-serialize this XML chunk.

Parameters
string$serializedThe serialized chunk.

Definition at line 86 of file Chunk.php.

References SAML2\DOMDocumentFactory\fromString().

87  {
88  $doc = DOMDocumentFactory::fromString(unserialize($serialized));
89  $this->xml = $doc->documentElement;
90  $this->localName = $this->xml->localName;
91  $this->namespaceURI = $this->xml->namespaceURI;
92  }
unserialize($serialized)
Un-serialize this XML chunk.
Definition: Chunk.php:86
+ Here is the call graph for this function:

Field Documentation

◆ $localName

SAML2\XML\Chunk::$localName

Definition at line 20 of file Chunk.php.

◆ $namespaceURI

SAML2\XML\Chunk::$namespaceURI

Definition at line 27 of file Chunk.php.

◆ $xml

SAML2\XML\Chunk::$xml

Definition at line 34 of file Chunk.php.

Referenced by SAML2\XML\Chunk\getXML().


The documentation for this class was generated from the following file: