PHP Class Goetas\Twital\Template

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

Méthodes publiques

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

Method Details

__construct() public méthode

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

getDocument() public méthode

Returns the {DOMDocument} of a template
public getDocument ( ) : DOMDocument
Résultat DOMDocument

getMetadata() public méthode

Return template metadatas.
public getMetadata ( ) : mixed
Résultat mixed