class
simple_html_dom
simple html dom parser
Paperg - in the find routine: allow us to specify that we want case insensitive testing of the value of the selector.
Paperg - change $size from protected to public so we can easily access it
Paperg - added ForceTagsClosed in the constructor which tells us whether we trust the html or not. Default is to NOT trust it.
Properties
|
|
$root |
|
|
|
|
$nodes |
|
|
|
|
$callback |
|
|
|
|
$lowercase |
|
|
|
|
$original_size |
|
|
|
|
$size |
|
|
|
protected
|
$pos |
|
|
|
protected
|
$doc |
|
|
|
protected
|
$char |
|
|
|
protected
|
$cursor |
|
|
|
protected
|
$parent |
|
|
|
protected
|
$noise |
|
|
|
protected
|
$token_blank |
|
|
|
protected
|
$token_equal |
|
|
|
protected
|
$token_slash |
|
|
|
protected
|
$token_attr |
|
|
|
|
$_charset |
|
|
|
|
$_target_charset |
|
|
|
protected
|
$default_br_text |
|
|
|
|
$default_span_text |
|
|
|
protected
|
$self_closing_tags |
|
|
|
protected
|
$block_tags |
|
|
|
protected
|
$optional_closing_tags |
|
|
Methods
__construct($str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
No description
load($str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
No description
save($filepath = '')
No description
find($selector, $idx = null, $lowercase = false)
No description
dump($show_attr = true)
No description
prepare($str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
No description
skip($chars)
No description
__get($name)
No description
Details
at line 1031
__construct($str = null, $lowercase = true, $forceTagsClosed = true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
at line 1051
__destruct()
at line 1057
load($str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
at line 1106
set_callback($function_name)
at line 1112
remove_callback()
at line 1118
save($filepath = '')
at line 1127
find($selector, $idx = null, $lowercase = false)
at line 1144
dump($show_attr = true)
at line 1150
protected
prepare($str, $lowercase = true, $stripRN = true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
at line 1185
protected
parse()
at line 1203
protected
parse_charset()
at line 1279
protected
read_tag()
at line 1504
protected
parse_attr($node, $name, $space)
at line 1541
protected
link_nodes($node, $is_child)
at line 1552
protected
as_text_node($tag)
at line 1562
protected
skip($chars)
at line 1568
protected
copy_skip($chars)
at line 1578
protected
copy_until($chars)
at line 1587
protected
copy_until_char($char)
at line 1605
protected
copy_until_char_escape($char)
at line 1636
protected
remove_noise($pattern, $remove_tag = false)
at line 1661
restore_noise($text)
at line 1694
search_noise($text)
at line 1707
__toString()
at line 1712
__get($name)
at line 1730
childNodes($idx = -1)
at line 1731
firstChild()
at line 1733
createElement($name, $value = null)
at line 1734
createTextNode($value)
at line 1735
getElementById($id)
at line 1736
getElementsById($id, $idx = null)
at line 1737
getElementByTagName($name)
at line 1738
getElementsByTagName($name, $idx = -1)