PHP Class SAML2\XML\Chunk

Inheritance: implements Serializable
Datei anzeigen Open project: simplesamlphp/saml2 Class Usage Examples

Public Properties

Property Type Description
$localName string The localName of the element.
$namespaceURI string The namespaceURI of this element.
$xml DOMElement The \DOMElement we contain.

Public Methods

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

Method Details

__construct() public method

Create a XMLChunk from a copy of the given \DOMElement.
public __construct ( DOMElement $xml )
$xml DOMElement The element we should copy.

getXML() public method

Get this \DOMElement.
Deprecation:
public getXML ( ) : DOMElement
return DOMElement This element.

serialize() public method

Serialize this XML chunk.
public serialize ( ) : string
return string The serialized chunk.

toXML() public method

Append this XML element to a different XML element.
public toXML ( DOMElement $parent ) : DOMElement
$parent DOMElement The element we should append this element to.
return DOMElement The new element.

unserialize() public method

Un-serialize this XML chunk.
public unserialize ( string $serialized )
$serialized string The serialized chunk.

Property Details

$localName public_oe property

The localName of the element.
public string $localName
return string

$namespaceURI public_oe property

The namespaceURI of this element.
public string $namespaceURI
return string

$xml public_oe property

The \DOMElement we contain.
public DOMElement $xml
return DOMElement