PHP Class Goetas\Twital\Template

A valid template is a {DOMDocument} with some additional metadata.
Author: Asmir Mustafic ([email protected])
Datei anzeigen Open project: goetas/twital Class Usage Examples

Public Methods

Method Description
__construct ( DOMDocument $document, mixed $metadata = null )
getDocument ( ) : DOMDocument Returns the {DOMDocument} of a template
getMetadata ( ) : mixed Return template metadatas.

Method Details

__construct() public method

public __construct ( DOMDocument $document, mixed $metadata = null )
$document DOMDocument The template {DOMDocument}
$metadata mixed Template metadatas

getDocument() public method

Returns the {DOMDocument} of a template
public getDocument ( ) : DOMDocument
return DOMDocument

getMetadata() public method

Return template metadatas.
public getMetadata ( ) : mixed
return mixed