Property | Type | Description | |
---|---|---|---|
$_ | .. for what each element contains. | ||
$attr | |||
$children | |||
$nodes | |||
$nodetype | |||
$parent | |||
$tag | |||
$tag_start |
Method | Description | |
---|---|---|
__construct ( $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 ( $selector, $idx = null, $lowercase = false ) | 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 ( ) |
Method | Description | |
---|---|---|
match ( $exp, $pattern, $value ) | ||
parse_selector ( $selector_string ) | ||
seek ( $selector, &$ret, $lowercase = false ) | PaperG - added parameter to allow for case insensitive testing of the value of a selector. |
public convert_text ( $text ) |
public dump_node ( $echo = true ) |
public find ( $selector, $idx = null, $lowercase = false ) |
public find_ancestor_tag ( $tag ) |
public get_display_size ( ) : array | ||
return | array | an array containing the 'height' and 'width' of the image on the page or -1 if we can't figure it out. |
public parent ( $parent = null ) |
protected seek ( $selector, &$ret, $lowercase = false ) |