Xataface HTML Reports Module 0.2
HTML Reports Module for Xataface
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
simple_html_dom Class Reference

Public Member Functions

 __destruct ()
 load ($str, $lowercase=true)
 load_file ()
 set_callback ($function_name)
 remove_callback ()
 save ($filepath='')
 find ($selector, $idx=-1)
 clear ()
 restore_noise ($text)
 __toString ()
 __get ($name)
 childNodes ($idx=-1)
 firstChild ()
 lastChild ()
 getElementById ($id)
 getElementsById ($id, $idx=-1)
 getElementByTagName ($name)
 getElementsByTagName ($name, $idx=-1)
 loadFile ()

Data Fields

 $root = null
 $nodes = array()
 $callback = null
 $lowercase = false

Protected Member Functions

 prepare ($str, $lowercase=true)
 parse ()
 read_tag ()
 parse_attr ($node, $name, &$space)
 link_nodes (&$node, $is_child)
 as_text_node ($tag)
 skip ($chars)
 copy_skip ($chars)
 copy_until ($chars)
 copy_until_char ($char)
 copy_until_char_escape ($char)
 remove_noise ($pattern, $remove_tag=false)

Protected Attributes

 $pos
 $doc
 $char
 $size
 $cursor
 $parent
 $noise = array()
 $token_blank = " \t\r\n"
 $token_equal = ' =/><'
 $token_slash = " />\r\n\t"
 $token_attr = ' >'
 $self_closing_tags = array('img'=>1, 'br'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1, 'nobr'=>1)
 $block_tags = array('root'=>1, 'body'=>1, 'form'=>1, 'div'=>1, 'span'=>1, 'table'=>1)
 $optional_closing_tags

Detailed Description

Definition at line 424 of file simple_html_dom.php.


Constructor & Destructor Documentation

__destruct ( )

Definition at line 455 of file simple_html_dom.php.


Member Function Documentation

__get ( name)

Definition at line 841 of file simple_html_dom.php.

__toString ( )

Definition at line 837 of file simple_html_dom.php.

as_text_node ( tag) [protected]

Definition at line 737 of file simple_html_dom.php.

childNodes ( idx = -1)

Definition at line 850 of file simple_html_dom.php.

clear ( )

Definition at line 514 of file simple_html_dom.php.

copy_skip ( chars) [protected]

Definition at line 751 of file simple_html_dom.php.

copy_until ( chars) [protected]

Definition at line 760 of file simple_html_dom.php.

copy_until_char ( char) [protected]

Definition at line 768 of file simple_html_dom.php.

copy_until_char_escape ( char) [protected]

Definition at line 785 of file simple_html_dom.php.

find ( selector,
idx = -1 
)

Definition at line 509 of file simple_html_dom.php.

firstChild ( )

Definition at line 851 of file simple_html_dom.php.

getElementById ( id)

Definition at line 853 of file simple_html_dom.php.

getElementByTagName ( name)

Definition at line 855 of file simple_html_dom.php.

getElementsById ( id,
idx = -1 
)

Definition at line 854 of file simple_html_dom.php.

getElementsByTagName ( name,
idx = -1 
)

Definition at line 856 of file simple_html_dom.php.

lastChild ( )

Definition at line 852 of file simple_html_dom.php.

link_nodes ( &$  node,
is_child 
) [protected]

Definition at line 729 of file simple_html_dom.php.

load ( str,
lowercase = true 
)

Definition at line 460 of file simple_html_dom.php.

load_file ( )

Definition at line 486 of file simple_html_dom.php.

loadFile ( )

Definition at line 857 of file simple_html_dom.php.

parse ( ) [protected]

Definition at line 542 of file simple_html_dom.php.

parse_attr ( node,
name,
&$  space 
) [protected]

Definition at line 707 of file simple_html_dom.php.

prepare ( str,
lowercase = true 
) [protected]

Definition at line 523 of file simple_html_dom.php.

read_tag ( ) [protected]

Definition at line 555 of file simple_html_dom.php.

remove_callback ( )

Definition at line 497 of file simple_html_dom.php.

remove_noise ( pattern,
remove_tag = false 
) [protected]

Definition at line 812 of file simple_html_dom.php.

restore_noise ( text)

Definition at line 828 of file simple_html_dom.php.

save ( filepath = '')

Definition at line 502 of file simple_html_dom.php.

set_callback ( function_name)

Definition at line 492 of file simple_html_dom.php.

skip ( chars) [protected]

Definition at line 746 of file simple_html_dom.php.


Field Documentation

$block_tags = array('root'=>1, 'body'=>1, 'form'=>1, 'div'=>1, 'span'=>1, 'table'=>1) [protected]

Definition at line 442 of file simple_html_dom.php.

$callback = null

Definition at line 427 of file simple_html_dom.php.

$char [protected]

Definition at line 431 of file simple_html_dom.php.

$cursor [protected]

Definition at line 433 of file simple_html_dom.php.

$doc [protected]

Definition at line 430 of file simple_html_dom.php.

$lowercase = false

Definition at line 428 of file simple_html_dom.php.

$nodes = array()

Definition at line 426 of file simple_html_dom.php.

$noise = array() [protected]

Definition at line 435 of file simple_html_dom.php.

$optional_closing_tags [protected]
Initial value:
 array(
        'tr'=>array('tr'=>1, 'td'=>1, 'th'=>1),
        'th'=>array('th'=>1),
        'td'=>array('td'=>1),
        'ul'=>array('li'=>1),
        'li'=>array('li'=>1),
        'dt'=>array('dt'=>1, 'dd'=>1),
        'dd'=>array('dd'=>1, 'dt'=>1),
        'dl'=>array('dd'=>1, 'dt'=>1),
        'p'=>array('p'=>1),
    )

Definition at line 443 of file simple_html_dom.php.

$parent [protected]

Definition at line 434 of file simple_html_dom.php.

$pos [protected]

Definition at line 429 of file simple_html_dom.php.

$root = null

Definition at line 425 of file simple_html_dom.php.

$self_closing_tags = array('img'=>1, 'br'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1, 'nobr'=>1) [protected]

Definition at line 441 of file simple_html_dom.php.

$size [protected]

Definition at line 432 of file simple_html_dom.php.

$token_attr = ' >' [protected]

Definition at line 439 of file simple_html_dom.php.

$token_blank = " \t\r\n" [protected]

Definition at line 436 of file simple_html_dom.php.

$token_equal = ' =/><' [protected]

Definition at line 437 of file simple_html_dom.php.

$token_slash = " />\r\n\t" [protected]

Definition at line 438 of file simple_html_dom.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations