PHP Class Pop\Dom\Dom

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

Protected Properties

Property Type Description
$charset string Document charset
$contentType string Document content type
$doctype string Document type
$doctypes array Document doctypes

Public Methods

Method 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 method

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
return Dom

__toString() public method

Render Dom object to string
public __toString ( ) : string
return string

getCharset() public method

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

getContentType() public method

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

getDoctype() public method

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

render() public method

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

setCharset() public method

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

setContentType() public method

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

setDoctype() public method

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

Property Details

$charset protected_oe property

Document charset
protected string $charset
return string

$contentType protected_oe property

Document content type
protected string $contentType
return string

$doctype protected_oe property

Document type
protected string $doctype
return string

$doctypes protected_oe static_oe property

Document doctypes
protected static array $doctypes
return array