PHP Class Pop\Dom\Dom

Author: Nick Sagona, III ([email protected])
Inheritance: extends AbstractDom
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$charset string Document charset
$contentType string Document content type
$doctype string Document type
$doctypes array Document doctypes

Méthodes publiques

Méthode Description
__construct ( string $doctype = null, string $charset = 'utf-8', mixed $childNode = null, string $indent = null ) : Dom Constructor
__toString ( ) : string Render Dom object to string
getCharset ( ) : string Method to return the document charset.
getContentType ( ) : string Method to return the document charset.
getDoctype ( ) : string Method to return the document type.
render ( boolean $ret = false ) : mixed Method to render the document and its child elements.
setCharset ( string $chr ) : Dom Method to set the document charset.
setContentType ( string $content ) : Dom Method to set the document charset.
setDoctype ( string $doctype = null ) : Dom Method to set the document type.

Method Details

__construct() public méthode

Instantiate the document object
public __construct ( string $doctype = null, string $charset = 'utf-8', mixed $childNode = null, string $indent = null ) : Dom
$doctype string
$charset string
$childNode mixed
$indent string
Résultat Dom

__toString() public méthode

Render Dom object to string
public __toString ( ) : string
Résultat string

getCharset() public méthode

Method to return the document charset.
public getCharset ( ) : string
Résultat string

getContentType() public méthode

Method to return the document charset.
public getContentType ( ) : string
Résultat string

getDoctype() public méthode

Method to return the document type.
public getDoctype ( ) : string
Résultat string

render() public méthode

Method to render the document and its child elements.
public render ( boolean $ret = false ) : mixed
$ret boolean
Résultat mixed

setCharset() public méthode

Method to set the document charset.
public setCharset ( string $chr ) : Dom
$chr string
Résultat Dom

setContentType() public méthode

Method to set the document charset.
public setContentType ( string $content ) : Dom
$content string
Résultat Dom

setDoctype() public méthode

Method to set the document type.
public setDoctype ( string $doctype = null ) : Dom
$doctype string
Résultat Dom

Property Details

$charset protected_oe property

Document charset
protected string $charset
Résultat string

$contentType protected_oe property

Document content type
protected string $contentType
Résultat string

$doctype protected_oe property

Document type
protected string $doctype
Résultat string

$doctypes protected_oe static_oe property

Document doctypes
protected static array $doctypes
Résultat array