PHP Класс Helper\Payment\alipay\simple_html_dom_node

PaperG - added $tag_start to track the start position of the tag in the total byte index
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$_ .. for what each element contains.
$attr
$children
$nodes
$nodetype
$parent
$tag
$tag_start

Открытые методы

Метод Описание
__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 ( )

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

public __construct ( $dom )

__destruct() публичный Метод

public __destruct ( )

__get() публичный Метод

public __get ( $name )

__isset() публичный Метод

public __isset ( $name )

__set() публичный Метод

public __set ( $name, $value )

__toString() публичный Метод

public __toString ( )

__unset() публичный Метод

public __unset ( $name )

appendChild() публичный Метод

public appendChild ( $node )

childNodes() публичный Метод

public childNodes ( $idx )

children() публичный Метод

returns children of node
public children ( $idx )

clear() публичный Метод

..
public clear ( )

convert_text() публичный Метод

PaperG - Function to convert the text from one character set to another if the two sets are not the same.
public convert_text ( $text )

dump() публичный Метод

dump node's tree
public dump ( $show_attr = true, $deep )

dump_node() публичный Метод

Debugging function to dump a single dom node with a bunch of information about it.
public dump_node ( $echo = true )

find() публичный Метод

PaperG - added ability for find to lowercase the value of the selector.
public find ( $selector, $idx = null, $lowercase = false )

find_ancestor_tag() публичный Метод

function to locate a specific ancestor tag in the path to the root.
public find_ancestor_tag ( $tag )

firstChild() публичный Метод

public firstChild ( )

first_child() публичный Метод

returns the first child of node
public first_child ( )

getAllAttributes() публичный Метод

camel naming conventions
public getAllAttributes ( )

getAttribute() публичный Метод

public getAttribute ( $name )

getElementById() публичный Метод

public getElementById ( $id )

getElementByTagName() публичный Метод

public getElementByTagName ( $name )

getElementsById() публичный Метод

public getElementsById ( $id, $idx = null )

getElementsByTagName() публичный Метод

public getElementsByTagName ( $name, $idx = null )

get_display_size() публичный Метод

NOTE: This will ONLY work on an IMG tag. Returns FALSE on all other tag types.
Автор: John Schlick
public get_display_size ( ) : array
Результат array an array containing the 'height' and 'width' of the image on the page or -1 if we can't figure it out.

hasAttribute() публичный Метод

public hasAttribute ( $name )

hasChildNodes() публичный Метод

public hasChildNodes ( )

has_child() публичный Метод

verify that node has children
public has_child ( )

innertext() публичный Метод

get dom node's inner html
public innertext ( )

is_utf8() статический публичный Метод

Returns true if $string is valid UTF-8 and false otherwise.
static public is_utf8 ( mixed $str ) : boolean
$str mixed String to be tested
Результат boolean

lastChild() публичный Метод

public lastChild ( )

last_child() публичный Метод

returns the last child of node
public last_child ( )

makeup() публичный Метод

build node's text with tag
public makeup ( )

match() защищенный Метод

protected match ( $exp, $pattern, $value )

nextSibling() публичный Метод

public nextSibling ( )

next_sibling() публичный Метод

returns the next sibling of node
public next_sibling ( )

nodeName() публичный Метод

public nodeName ( )

outertext() публичный Метод

get dom node's outer text (with tag)
public outertext ( )

parent() публичный Метод

If a node is passed in, it will reset the parent of the current node to that one.
public parent ( $parent = null )

parentNode() публичный Метод

public parentNode ( )

parse_selector() защищенный Метод

protected parse_selector ( $selector_string )

prev_sibling() публичный Метод

returns the previous sibling of node
public prev_sibling ( )

previousSibling() публичный Метод

public previousSibling ( )

removeAttribute() публичный Метод

public removeAttribute ( $name )

seek() защищенный Метод

PaperG - added parameter to allow for case insensitive testing of the value of a selector.
protected seek ( $selector, &$ret, $lowercase = false )

setAttribute() публичный Метод

public setAttribute ( $name, $value )

text() публичный Метод

get dom node's plain text
public text ( )

xmltext() публичный Метод

public xmltext ( )

Описание свойств

$_ публичное свойство

.. for what each element contains.
public $_

$attr публичное свойство

public $attr

$children публичное свойство

public $children

$nodes публичное свойство

public $nodes

$nodetype публичное свойство

public $nodetype

$parent публичное свойство

public $parent

$tag публичное свойство

public $tag

$tag_start публичное свойство

public $tag_start