Overview
  • Class

Classes

  • hQuery
  • hQuery_Element
  • hQuery_HTML_Parser
  • hQuery_Node

Class hQuery_Node

Base class for HTML Elements and Documents.

used internally

hQuery_Node implements Iterator, Countable

Direct known subclasses

hQuery_Element, hQuery_HTML_Parser

Indirect known subclasses

hQuery

Abstract
License: MIT
Author: Dumitru Uzun (DUzun.ME)
Located at

Methods summary

protected
# __construct( $doc, $ids, $is_ctx = false )
public
# __destruct( )
public
# attr( $attr = NULL, $to_str = false )
public
# is_empty( )
public
# isEmpty( )
public
# isDoc( )
public
# doc( )
public
# find( $sel, $attr = NULL )
public
# exclude( $sel, $attr = NULL )
public
# __toString( )
public string
# html( $id = NULL )

Returns

string
.innerHTML
public string
# outerHtml( $id = NULL )

Returns

string
.outerHtml
public string
# text( $id = NULL )

Returns

string
.innerText
public string
# nodeName( $caseFolding = NULL, $id = NULL )

Returns

string
.nodeName
public integer
# pos( boolean $restore = true )

Get string offset of the first/current element in the source HTML document.

Get string offset of the first/current element in the source HTML document.

Contents of #test

| pos()

Parameters

$restore
  • if true, restore internal pointer to previous position

Returns

integer
protected array
# _ctx_ids( $ids = NULL )

Make a context array of ids (if x in $ids && exists y in $ids such that x in y then del x from $ids)

Make a context array of ids (if x in $ids && exists y in $ids such that x in y then del x from $ids)

Returns

array
ids
protected array
# _sub_ids( $eq = false )

Get all ids from inside of this element

Get all ids from inside of this element

Returns

array
ids
protected array
# _doc_ids( $el, $force_array = true )

Get and Normalize ids of $el

Get and Normalize ids of $el

Returns

array
ids
protected
# _my_ids( $id = NULL, $keys = false )
public
# _parent( $ids = NULL, $n = 0 )
public
# _children( $ids = NULL, $n = NULL )
public
# _next( $ids = NULL, $n = 0 )
public
# _prev( $ids = NULL, $n = 0 )
public
# _all( $ids = NULL )
public
# _has( $el, $eq = false )
public
# _filter( $el, $eq = false )
public
# __get( $name )
public
# __set( $name, $value )
public
# __isset( $name )
public
# __unset( $name )
public
# count( )

Implementation of

Countable::count()
public
# current( )

Implementation of

Iterator::current()
public
# valid( )

Implementation of

Iterator::valid()
public
# key( )

Implementation of

Iterator::key()
public
# next( )

Implementation of

Iterator::next()
public
# prev( )
public
# rewind( )

Implementation of

Iterator::rewind()
protected static
# html_findTagClose( $str, $p )
public static
# html_parseAttrStr( $str, $case_folding = true, $extended = false )
public static
# html_attr2str( $attr, $quote = '"' )
public static
# parseCSStr( $str, $case_folding = true )
public static
# CSSArr2Str( $css )
public static
# str_range( $comp, $pos = 0, $len = NULL )
public static
# array_select( $arr, $keys, $force_null = false )
public static
# convert_encoding( $a, $to, $from = NULL )

Constants summary

string VERSION
# '1.6.1'

Properties summary

public static $last_http_result
#
public static $selected_doc
# NULL
protected $_prop
#
protected $doc
#
protected $ids
#
protected $exc
#
public $tag_map
#
public static array $_ar_
# array()
public static integer $_mi_
# PHP_INT_MAX
public static $_nl_
# NULL
public static boolean $_fl_
# false
public static boolean $_tr_
# true
API documentation generated by ApiGen