Overview
  • Class

Classes

  • hQuery
  • hQuery_Element
  • hQuery_HTML_Parser
  • hQuery_Node

Class hQuery_Element

Represents an HTML Element ( eg div, input etc ) or a collection of elements ( eq jQuery([div, span, ...]) )

hQuery_Node implements Iterator, Countable
Extended by hQuery_Element
License: MIT
Author: Dumitru Uzun (DUzun.ME)
Located at

Methods summary

public
# toArray( $cch = true )
public
# __get( $name )

Overrides

hQuery_Node::__get
public
# offsetSet( $offset, $value )
public
# offsetGet( $offset )
public
# offsetExists( $offset )
public
# offsetUnset( $offset )
public
# val( )

Get value of an :input element.

Get value of an :input element.

public hQuery_Element
# current( )

Override current() for iterations.

Override current() for iterations.

Returns

hQuery_Element

Overrides

hQuery_Node::current
public hQuery_Element
# get( integer $idx )

Get the node at $idx position in the set, using cache

Get the node at $idx position in the set, using cache

Parameters

$idx
  • index of an element, starts with 0.

Returns

hQuery_Element
public hQuery_Element
# eq( integer $idx )

Get the node at $idx position in the set, no cache, each call creates new instance.

Get the node at $idx position in the set, no cache, each call creates new instance.

Parameters

$idx
  • index of an element, starts with 0.

Returns

hQuery_Element
public hQuery_Element
# slice( integer $idx, integer $len = NULL )

Get a slice of current node collection.

Get a slice of current node collection.

Parameters

$idx
  • start index of an element, starts with 0.
$len
  • OPTIONAL number of element to slice. Defaults to all starting at $idx

Returns

hQuery_Element
public hQuery_Element
# parent( )

Get parent nodes for this collection of nodes.

Get parent nodes for this collection of nodes.

Returns

hQuery_Element
parent
public hQuery_Element
# children( )

Get child nodes for this collection of nodes.

Get child nodes for this collection of nodes.

Returns

hQuery_Element
children
public hQuery_Element
# previousElementSibling( )

Get previous element siblings for each of the elements of this collection

Get previous element siblings for each of the elements of this collection

Returns

hQuery_Element
previousElementSibling
public hQuery_Element
# nextElementSibling( )

Get next element siblings for each of the elements of this collection

Get next element siblings for each of the elements of this collection

Returns

hQuery_Element
nextElementSibling

Methods inherited from hQuery_Node

CSSArr2Str(), __construct(), __destruct(), __isset(), __set(), __toString(), __unset(), _all(), _children(), _ctx_ids(), _doc_ids(), _filter(), _has(), _my_ids(), _next(), _parent(), _prev(), _sub_ids(), array_select(), attr(), convert_encoding(), count(), doc(), exclude(), find(), html(), html_attr2str(), html_findTagClose(), html_parseAttrStr(), isDoc(), isEmpty(), is_empty(), key(), next(), nodeName(), outerHtml(), parseCSStr(), pos(), prev(), rewind(), str_range(), text(), valid()

Constants summary

Constants inherited from hQuery_Node

VERSION

Properties summary

protected $_ich
# NULL

Properties inherited from hQuery_Node

$_ar_, $_fl_, $_mi_, $_nl_, $_prop, $_tr_, $doc, $exc, $ids, $last_http_result, $selected_doc, $tag_map

API documentation generated by ApiGen