Overview
  • Class

Classes

  • hQuery
  • hQuery_Element
  • hQuery_HTML_Parser
  • hQuery_Node

Class hQuery_HTML_Parser

HTML Parser Class

used internally

hQuery_Node implements Iterator, Countable
Extended by hQuery_HTML_Parser

Direct known subclasses

hQuery

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

Methods summary

public
# __get( $name )

Overrides

hQuery_Node::__get
public
# __set( $name, $value )

Overrides

hQuery_Node::__set
public
# location( $href = NULL )
public
# baseURI( $href = NULL )
public
# __construct( $html, $idx = true )

Overrides

hQuery_Node::__construct
public
# __toString( )

Overrides

hQuery_Node::__toString
public static
# get_url_base( $url, $array = false )
public static
# get_url_path( $url )
public
# url2abs( $url )
public static
# detect_charset( $str )
public
# strlen( )
public
# substr( $start, $length = NULL )
public
# _info( )
protected
# _index_comments_html( $o )
protected
# _index_all( )
protected
# _get_ctx( $ctx )
protected
# _find( $name, $class = NULL, $attr = NULL, $ctx = NULL, $rec = true )
protected false
# hasClass( $id, $cl )

Returns

false
  • no class, 0 - doesn't have class, true - has class, [ids.cl]
protected
# filter( $ids, $name = NULL, $class = NULL, $attr = NULL, $ctx = NULL )
protected [aids]
# get_aids_byAttr( $attr, $as_keys = false, $actx = NULL )

Returns

[aids]
protected
# get_aids_byClass( $cl, $as_keys = false, $actx = NULL )

Returns


$as_keys ? [aid => id | [ids]] : [aids]
protected
# get_aids_byClassAttr( $cl, $attr, $as_keys = false, $actx = NULL )
protected
# get_ids_byAid( $aid, $sort = true, $has_keys = false )

$has_keys == true => $aid == [aid=>[ids]] $has_keys == false => $aid == [aids]

$has_keys == true => $aid == [aid=>[ids]] $has_keys == false => $aid == [aids]

protected
# get_ids_byAttr( $attr, $sort = true )
protected
# get_ids_byClass( $cl, $sort = true )
protected
# get_ids_byClassAttr( $cl, $attr, $sort = true )
protected
# get_attr_byAid( $aid, $to_str = false )
protected
# get_attr_byId( $id, $attr = NULL, $to_str = false )

Methods inherited from hQuery_Node

CSSArr2Str(), __destruct(), __isset(), __unset(), _all(), _children(), _ctx_ids(), _doc_ids(), _filter(), _has(), _my_ids(), _next(), _parent(), _prev(), _sub_ids(), array_select(), attr(), convert_encoding(), count(), current(), 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

public static boolean $del_spaces
# false
public static boolean $case_folding
# true
public static boolean $autoclose_tags
# false
public static array $_emptyTags
# array('base','meta','link','hr','br','basefont','param','img','area','input','isindex','col')
public static array $_specialTags
# array('--'=>'--', '[CDATA['=>']]')
public static array $_unparsedTags
# array('style', 'script')
public static array $_index_attribs
# array('href', 'src')
public static array $_url_attribs
# array('href'=>'href', 'src'=>'src')
protected static string $_tagID_first_letter
# 'a-zA-Z_'
protected static string $_tagID_letters
# 'a-zA-Z_0-9:\-'
protected static string $_icharset
# 'UTF-8'
protected string $html
# ''
protected $tags
#
protected $attrs
#
protected $attribs
#
protected $idx_attr
#
protected $tag_idx
#
protected $attr_idx
#
protected $class_idx
#
protected $o
# NULL
protected boolean $indexed
# false

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