PHP Класс Pop\Dom\Dom

Автор: Nick Sagona, III ([email protected])
Наследование: extends AbstractDom
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$charset string Document charset
$contentType string Document content type
$doctype string Document type
$doctypes array Document doctypes

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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
Результат Dom

__toString() публичный Метод

Render Dom object to string
public __toString ( ) : string
Результат string

getCharset() публичный Метод

Method to return the document charset.
public getCharset ( ) : string
Результат string

getContentType() публичный Метод

Method to return the document charset.
public getContentType ( ) : string
Результат string

getDoctype() публичный Метод

Method to return the document type.
public getDoctype ( ) : string
Результат string

render() публичный Метод

Method to render the document and its child elements.
public render ( boolean $ret = false ) : mixed
$ret boolean
Результат mixed

setCharset() публичный Метод

Method to set the document charset.
public setCharset ( string $chr ) : Dom
$chr string
Результат Dom

setContentType() публичный Метод

Method to set the document charset.
public setContentType ( string $content ) : Dom
$content string
Результат Dom

setDoctype() публичный Метод

Method to set the document type.
public setDoctype ( string $doctype = null ) : Dom
$doctype string
Результат Dom

Описание свойств

$charset защищенное свойство

Document charset
protected string $charset
Результат string

$contentType защищенное свойство

Document content type
protected string $contentType
Результат string

$doctype защищенное свойство

Document type
protected string $doctype
Результат string

$doctypes защищенное статическое свойство

Document doctypes
protected static array $doctypes
Результат array