Свойство | Тип | Описание | |
---|---|---|---|
$_ | |||
$attr | |||
$children | |||
$nodes | |||
$nodetype | |||
$parent | |||
$tag | |||
$tag_start |
Метод | Описание | |
---|---|---|
__construct ( $dom ) | ||
__destruct ( ) | ||
__get ( $name ) | ||
__isset ( $name ) | ||
__set ( $name, $value ) | ||
__toString ( ) | ||
__unset ( $name ) | ||
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 ( ) | 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 ) | ||
hasAttribute ( $name ) | ||
innertext ( ) | get dom node's inner html | |
is_utf8 ( $string ) | ||
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 | |
outertext ( ) | get dom node's outer text (with tag) | |
parent ( ) | returns the parent of node | |
parentNode ( ) | ||
prev_sibling ( ) | returns the previous sibling of node | |
previousSibling ( ) | ||
removeAttribute ( $name ) | ||
setAttribute ( $name, $value ) | ||
text ( ) | get dom node's plain text | |
xmltext ( ) |
Метод | Описание | |
---|---|---|
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 ( ) |
public find ( $selector, $idx = null, $lowercase = false ) |
public find_ancestor_tag ( $tag ) |
protected seek ( $selector, &$ret, $lowercase = false ) |