Property | Type | Description | |
---|---|---|---|
$_charset | Note that this is referenced by a child node, and so it needs to be public for that node to see this information. | ||
$_target_charset | |||
$callback | |||
$default_span_text | |||
$lowercase | |||
$nodes | |||
$original_size | Used to keep track of how large the text was when we started. | ||
$root | |||
$size |
Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__construct ( $str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT ) | ||
__destruct ( ) | ||
__get ( $name ) | ||
__toString ( ) | ||
childNodes ( $idx ) | camel naming conventions | |
clear ( ) | clean up memory due to php5 circular references memory leak. | |
createElement ( $name, $value = null ) | ||
createTextNode ( $value ) | ||
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, $defaultSpanText = DEFAULT_SPAN_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 | |
search_noise ( $text ) | Sometimes we NEED one of the noise elements. | |
set_callback ( $function_name ) | set callback function |
Method | Description | |
---|---|---|
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 from the 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, $defaultSpanText = DEFAULT_SPAN_TEXT ) | prepare HTML data and init everything | |
read_tag ( ) | read tag info | |
remove_noise ( $pattern, $remove_tag = false ) | save the noise in the $this->noise array. | |
skip ( $chars ) |
public __construct ( $str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT ) |
public find ( $selector, $idx = null, $lowercase = false ) |
public load ( $str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT ) |
protected parse_charset ( ) |
protected prepare ( $str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT ) |
protected remove_noise ( $pattern, $remove_tag = false ) |
public search_noise ( $text ) |
public $_charset |
protected $optional_closing_tags |
public $original_size |
public simple_html_dom_node,simplehtmldom_1_5 $root | ||
return |