PHP 클래스 Pop\Dom\Dom

저자: Nick Sagona, III ([email protected])
상속: extends AbstractDom
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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