Method |
Description |
|
__construct ( simple_html_dom $dom ) |
|
|
__destruct ( ) |
|
|
__get ( $name ) |
|
|
__isset ( $name ) |
|
|
__set ( $name, $value ) |
|
|
__toString ( ) |
|
|
__unset ( $name ) |
|
|
appendChild ( $node ) |
|
|
childNodes ( $idx ) |
|
|
children ( $idx ) |
returns children of node |
|
clear ( ) |
clean up memory due to php5 circular references memory leak. |
|
convert_text ( $text ) |
PaperG - Function to convert the text from one character set to another if the two sets are not the same. |
|
dump ( $show_attr = true, $deep ) |
dump node's tree |
|
dump_node ( $echo = true ) |
Debugging function to dump a single dom node with a bunch of information about it. |
|
find ( string $selector, integer | null $idx = null, boolean $lowercase = false ) : simple_html_dom_node[] | simple_html_dom_node | null |
find elements by css selector
PaperG - added ability for find to lowercase the value of the selector. |
|
find_ancestor_tag ( $tag ) |
function to locate a specific ancestor tag in the path to the root. |
|
firstChild ( ) |
|
|
first_child ( ) |
returns the first child of node |
|
getAllAttributes ( ) |
camel naming conventions |
|
getAttribute ( $name ) |
|
|
getElementById ( $id ) |
|
|
getElementByTagName ( $name ) |
|
|
getElementsById ( $id, $idx = null ) |
|
|
getElementsByTagName ( $name, $idx = null ) |
|
|
get_display_size ( ) : array |
Function to try a few tricks to determine the displayed size of an img on the page. |
|
hasAttribute ( $name ) |
|
|
hasChildNodes ( ) |
|
|
has_child ( ) |
verify that node has children |
|
innertext ( ) |
get dom node's inner html |
|
is_utf8 ( mixed $str ) : boolean |
Returns true if $string is valid UTF-8 and false otherwise. |
|
lastChild ( ) |
|
|
last_child ( ) |
returns the last child of node |
|
makeup ( ) |
build node's text with tag |
|
nextSibling ( ) |
|
|
next_sibling ( ) |
returns the next sibling of node |
|
nodeName ( ) |
|
|
outertext ( ) |
get dom node's outer text (with tag) |
|
parent ( $parent = null ) |
If a node is passed in, it will reset the parent of the current node to that one. |
|
parentNode ( ) |
|
|
prev_sibling ( ) |
returns the previous sibling of node |
|
previousSibling ( ) |
|
|
removeAttribute ( $name ) |
|
|
setAttribute ( $name, $value ) |
|
|
text ( ) |
get dom node's plain text |
|
xmltext ( ) |
|
|