Properties

$nodetype

$nodetype : 

Type

$tag

$tag : 

Type

$attr

$attr : 

Type

$children

$children : 

Type

$nodes

$nodes : 

Type

$parent

$parent : 

Type

$_

$_ : 

Type

$tag_start

$tag_start : 

Type

$dom

$dom : 

Type

Methods

__construct()

__construct(  $dom) 

Parameters

$dom

__destruct()

__destruct() 

__toString()

__toString() 

clear()

clear() 

dump()

dump(  $show_attr = true,   $deep) 

Parameters

$show_attr
$deep

dump_node()

dump_node(  $echo = true) 

Parameters

$echo

parent()

parent(  $parent = null) 

Parameters

$parent

has_child()

has_child() 

children()

children(  $idx = -1) 

Parameters

$idx

first_child()

first_child() 

last_child()

last_child() 

next_sibling()

next_sibling() 

prev_sibling()

prev_sibling() 

find_ancestor_tag()

find_ancestor_tag(  $tag) 

Parameters

$tag

innertext()

innertext() 

outertext()

outertext() 

text()

text() 

xmltext()

xmltext() 

makeup()

makeup() 

find()

find(  $selector,   $idx = null,   $lowercase = false) 

Parameters

$selector
$idx
$lowercase

__get()

__get(  $name) 

Parameters

$name

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__isset()

__isset(  $name) 

Parameters

$name

__unset()

__unset(  $name) 

Parameters

$name

convert_text()

convert_text(  $text) 

Parameters

$text

is_utf8()

is_utf8(mixed  $str) : boolean

Returns true if $string is valid UTF-8 and false otherwise.

Parameters

mixed $str

String to be tested

Returns

boolean

get_display_size()

get_display_size() : array

Function to try a few tricks to determine the displayed size of an img on the page.

NOTE: This will ONLY work on an IMG tag. Returns FALSE on all other tag types.

Returns

array —

an array containing the 'height' and 'width' of the image on the page or -1 if we can't figure it out.

getAllAttributes()

getAllAttributes() 

getAttribute()

getAttribute(  $name) 

Parameters

$name

setAttribute()

setAttribute(  $name,   $value) 

Parameters

$name
$value

hasAttribute()

hasAttribute(  $name) 

Parameters

$name

removeAttribute()

removeAttribute(  $name) 

Parameters

$name

getElementById()

getElementById(  $id) 

Parameters

$id

getElementsById()

getElementsById(  $id,   $idx = null) 

Parameters

$id
$idx

getElementByTagName()

getElementByTagName(  $name) 

Parameters

$name

getElementsByTagName()

getElementsByTagName(  $name,   $idx = null) 

Parameters

$name
$idx

parentNode()

parentNode() 

childNodes()

childNodes(  $idx = -1) 

Parameters

$idx

firstChild()

firstChild() 

lastChild()

lastChild() 

nextSibling()

nextSibling() 

previousSibling()

previousSibling() 

hasChildNodes()

hasChildNodes() 

nodeName()

nodeName() 

appendChild()

appendChild(  $node) 

Parameters

$node

seek()

seek(  $selector,   $ret,   $lowercase = false) 

Parameters

$selector
$ret
$lowercase

match()

match(  $exp,   $pattern,   $value) 

Parameters

$exp
$pattern
$value

parse_selector()

parse_selector(  $selector_string) 

Parameters

$selector_string