프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$callback | |||
$lowercase | |||
$nodes | |||
$root | |||
$size |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_charset | |||
$_target_charset | |||
$block_tags | |||
$char | |||
$cursor | |||
$default_br_text | |||
$doc | |||
$noise | |||
$optional_closing_tags | B tags that are not closed cause us to return everything to the end of the document. | ||
$parent | |||
$pos | |||
$self_closing_tags | .. | ||
$token_attr | |||
$token_blank | |||
$token_equal | |||
$token_slash |
메소드 | 설명 | |
---|---|---|
__construct ( $str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) | ||
__destruct ( ) | ||
__get ( $name ) | ||
__toString ( ) | ||
childNodes ( $idx ) | camel naming conventions | |
clear ( ) | clean up memory due to php5 circular references memory leak. | |
dump ( $show_attr = true ) | ||
find ( $selector, $idx = null, $lowercase = false ) | Paperg - allow us to specify that we want case insensitive testing of the value of the selector. | |
firstChild ( ) | ||
getElementById ( $id ) | ||
getElementByTagName ( $name ) | ||
getElementsById ( $id, $idx = null ) | ||
getElementsByTagName ( $name, $idx ) | ||
lastChild ( ) | ||
load ( $str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) | load html from string | |
loadFile ( ) | ||
load_file ( ) | load html from file | |
remove_callback ( ) | remove callback function | |
restore_noise ( $text ) | restore noise to html content | |
save ( $filepath = '' ) | save dom as string | |
set_callback ( $function_name ) | set callback function |
메소드 | 설명 | |
---|---|---|
as_text_node ( $tag ) | as a text node | |
copy_skip ( $chars ) | ||
copy_until ( $chars ) | ||
copy_until_char ( $char ) | ||
copy_until_char_escape ( $char ) | ||
link_nodes ( &$node, $is_child ) | link node's parent | |
parse ( ) | parse html content | |
parse_attr ( $node, $name, &$space ) | parse attributes | |
parse_charset ( ) | (or the content_type header fromt eh last transfer), we will parse THAT, and if a charset is specified, we will use it over any other mechanism. | |
prepare ( $str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) | prepare HTML data and init everything | |
read_tag ( ) | read tag info | |
remove_noise ( $pattern, $remove_tag = false ) | remove noise from html content | |
skip ( $chars ) |
public __construct ( $str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) |
public find ( $selector, $idx = null, $lowercase = false ) |
public load ( $str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) |
protected parse_charset ( ) |
protected prepare ( $str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT ) |
protected remove_noise ( $pattern, $remove_tag = false ) |
protected $optional_closing_tags |