PHP 클래스 DOMDocumentWrapper, microweber

파일 보기 프로젝트 열기: microweber/microweber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$charset
$contentType unknown_type
$data
$dataNodes
$document DOMDocument
$events
$eventsGlobal
$eventsNodes
$frames unknown_type
$id
$isDocumentFragment
$isHTML
$isXHTML
$isXML
$root DOMNode Used by documentFragments.
$uuid
$xpath

공개 메소드들

메소드 설명
__construct ( $markup = null, $contentType = null, $newDocumentID = null )
debug ( $text )
expandEmptyTag ( $tag, $xml ) : unknown_type expandEmptyTag.
import ( $source, $sourceCharset = null ) : array
importAttr ( $value )
isDocumentFragmentHTML ( $markup )
isDocumentFragmentXHTML ( $markup )
isDocumentFragmentXML ( $markup )
load ( $markup, $contentType = null, $newDocumentID = null )
markup ( $nodes = null, $innerMarkup = false ) : string Return document markup, starting with optional $nodes as root.

보호된 메소드들

메소드 설명
afterMarkupLoad ( )
charsetAppendToHTML ( $html, $charset, $xhtml = false )
charsetAppendToXML ( $markup, $charset )
charsetFixHTML ( $markup ) Repositions meta[type=charset] at the start of head. Bypasses DOMDocument bug.
charsetFromHTML ( $markup )
charsetFromXML ( $markup )
contentTypeFromHTML ( $markup ) : array
contentTypeToArray ( $contentType )
documentCreate ( $charset, $version = '1.0' )
documentFragmentCreate ( $source, $charset = null ) : DOMDocumentWrapper Creates new document fragment.
documentFragmentToMarkup ( $fragment )
isXHTML ( $markup = null )
isXML ( $markup )
loadMarkup ( $markup )
loadMarkupHTML ( $markup, $requestedCharset = null )
loadMarkupReset ( )
loadMarkupXML ( $markup, $requestedCharset = null )
markupFixXHTML ( $markup )

비공개 메소드들

메소드 설명
documentFragmentLoadMarkup ( $fragment, $charset, $markup = null )

메소드 상세

__construct() 공개 메소드

public __construct ( $markup = null, $contentType = null, $newDocumentID = null )

afterMarkupLoad() 보호된 메소드

protected afterMarkupLoad ( )

charsetAppendToHTML() 보호된 메소드

protected charsetAppendToHTML ( $html, $charset, $xhtml = false )

charsetAppendToXML() 보호된 메소드

protected charsetAppendToXML ( $markup, $charset )

charsetFixHTML() 보호된 메소드

Repositions meta[type=charset] at the start of head. Bypasses DOMDocument bug.
protected charsetFixHTML ( $markup )

charsetFromHTML() 보호된 메소드

protected charsetFromHTML ( $markup )

charsetFromXML() 보호된 메소드

protected charsetFromXML ( $markup )

contentTypeFromHTML() 보호된 메소드

protected contentTypeFromHTML ( $markup ) : array
$markup
리턴 array contentType, charset

contentTypeToArray() 보호된 메소드

protected contentTypeToArray ( $contentType )

debug() 공개 정적인 메소드

public static debug ( $text )

documentCreate() 보호된 메소드

protected documentCreate ( $charset, $version = '1.0' )

documentFragmentCreate() 보호된 메소드

Creates new document fragment.
protected documentFragmentCreate ( $source, $charset = null ) : DOMDocumentWrapper
$source
리턴 DOMDocumentWrapper

documentFragmentToMarkup() 보호된 메소드

protected documentFragmentToMarkup ( $fragment )

expandEmptyTag() 공개 정적인 메소드

expandEmptyTag.
저자: mjaque at ilkebenson dot com
public static expandEmptyTag ( $tag, $xml ) : unknown_type
$tag
$xml
리턴 unknown_type

import() 공개 메소드

public import ( $source, $sourceCharset = null ) : array
$source
$sourceCharset
리턴 array Array of imported nodes.

importAttr() 공개 메소드

public importAttr ( $value )

isDocumentFragmentHTML() 공개 정적인 메소드

public static isDocumentFragmentHTML ( $markup )

isDocumentFragmentXHTML() 공개 정적인 메소드

public static isDocumentFragmentXHTML ( $markup )

isDocumentFragmentXML() 공개 정적인 메소드

public static isDocumentFragmentXML ( $markup )

isXHTML() 보호된 메소드

protected isXHTML ( $markup = null )

isXML() 보호된 메소드

protected isXML ( $markup )

load() 공개 메소드

public load ( $markup, $contentType = null, $newDocumentID = null )

loadMarkup() 보호된 메소드

protected loadMarkup ( $markup )

loadMarkupHTML() 보호된 메소드

protected loadMarkupHTML ( $markup, $requestedCharset = null )

loadMarkupReset() 보호된 메소드

protected loadMarkupReset ( )

loadMarkupXML() 보호된 메소드

protected loadMarkupXML ( $markup, $requestedCharset = null )

markup() 공개 메소드

Return document markup, starting with optional $nodes as root.
public markup ( $nodes = null, $innerMarkup = false ) : string
$nodes DOMNode|DOMNodeList
리턴 string

markupFixXHTML() 보호된 정적인 메소드

protected static markupFixXHTML ( $markup )

프로퍼티 상세

$charset 공개적으로 프로퍼티

public $charset

$contentType 공개적으로 프로퍼티

public unknown_type $contentType
리턴 unknown_type

$data 공개적으로 프로퍼티

public $data

$dataNodes 공개적으로 프로퍼티

public $dataNodes

$document 공개적으로 프로퍼티

public DOMDocument $document
리턴 DOMDocument

$events 공개적으로 프로퍼티

public $events

$eventsGlobal 공개적으로 프로퍼티

public $eventsGlobal

$eventsNodes 공개적으로 프로퍼티

public $eventsNodes

$frames 공개적으로 프로퍼티

public unknown_type $frames
리턴 unknown_type

$id 공개적으로 프로퍼티

public $id

$isDocumentFragment 공개적으로 프로퍼티

public $isDocumentFragment

$isHTML 공개적으로 프로퍼티

public $isHTML

$isXHTML 공개적으로 프로퍼티

public $isXHTML

$isXML 공개적으로 프로퍼티

public $isXML

$root 공개적으로 프로퍼티

Used by documentFragments.
public DOMNode $root
리턴 DOMNode

$uuid 공개적으로 프로퍼티

public $uuid

$xpath 공개적으로 프로퍼티

public $xpath