hQuery.php
|
Public Member Functions | |
toArray ($cch=true) | |
__get ($name) | |
offsetSet ($offset, $value) | |
offsetGet ($offset) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
current () | |
val () | |
hasClass ($className) | |
get ($idx) | |
eq ($idx) | |
slice ($idx, $len=NULL) | |
parent () | |
children () | |
previousElementSibling () | |
nextElementSibling () | |
![]() | |
attr ($attr=NULL, $to_str=false) | |
is_empty () | |
isEmpty () | |
isDoc () | |
doc () | |
find ($sel, $attr=NULL) | |
exclude ($sel, $attr=NULL) | |
__toString () | |
html ($id=NULL) | |
outerHtml ($id=NULL) | |
text ($id=NULL) | |
nodeName ($caseFolding=NULL, $id=NULL) | |
pos ($restore=true) | |
_children ($ids=NULL, $n=NULL) | |
_next ($ids=NULL, $n=0) | |
_prev ($ids=NULL, $n=0) | |
_all ($ids=NULL) | |
_has ($el, $eq=false) | |
$el < $this, with $eq == true -> $el <= $this | |
_filter_contains ($el, $eq=false) | |
__get ($name) | |
__set ($name, $value) | |
__isset ($name) | |
__unset ($name) | |
count () | |
current () | |
valid () | |
key () | |
next () | |
prev () | |
rewind () | |
Protected Attributes | |
$_ich = NULL | |
![]() | |
$_prop = array() | |
$doc | |
$ids | |
$exc | |
Additional Inherited Members | |
![]() | |
static | html_normal_pseudoClass ($p) |
static | html_selector2struc ($sel) |
static | html_parseAttrStr ($str, $case_folding=true, $extended=false) |
static | html_attr2str ($attr, $quote='"') |
static | parseCSStr ($str, $case_folding=true) |
static | CSSArr2Str ($css) |
static | str_range ($comp, $pos=0, $len=NULL) |
static | array_select ($arr, $keys, $force_null=false) |
static | convert_encoding ($a, $to, $from=NULL) |
![]() | |
const | VERSION = '2.0.2' |
$tag_map | |
![]() | |
static | $last_http_result |
static | $selected_doc = NULL |
static | $_ar_ = array() |
static | $_mi_ = PHP_INT_MAX |
static | $_nl_ = NULL |
static | $_fl_ = false |
static | $_tr_ = true |
![]() | |
__construct ($doc, $ids, $is_ctx=false) | |
_ctx_ids ($ids=NULL) | |
_sub_ids ($eq=false) | |
_doc_ids ($el, $force_array=true) | |
_my_ids ($id=NULL, $keys=false) | |
_parent ($ids=NULL, $n=0) | |
![]() | |
static | html_findTagClose ($str, $p) |
Represents an HTML Element ( eg div, input etc ) or a collection of elements ( eq jQuery([div, span, ...]) )
Definition at line 12 of file Element.php.
duzun\hQuery\Element::children | ( | ) |
Get child nodes for this collection of nodes.
Definition at line 254 of file Element.php.
duzun\hQuery\Element::current | ( | ) |
Override current() for iterations.
Definition at line 124 of file Element.php.
duzun\hQuery\Element::eq | ( | $idx | ) |
Get the node at $idx position in the set, no cache, each call creates new instance.
int | $idx | - index of an element, starts with 0. |
Definition at line 200 of file Element.php.
duzun\hQuery\Element::get | ( | $idx | ) |
Get the node at $idx position in the set, using cache
int | $idx | - index of an element, starts with 0. |
Definition at line 176 of file Element.php.
duzun\hQuery\Element::hasClass | ( | $className | ) |
Checks whether $this element/collection has a(ll) class(es).
string | array | $cl | - class(es) to check |
Definition at line 161 of file Element.php.
References duzun\hQuery\Node\doc().
duzun\hQuery\Element::nextElementSibling | ( | ) |
Get next element siblings for each of the elements of this collection
Definition at line 274 of file Element.php.
duzun\hQuery\Element::parent | ( | ) |
Get parent nodes for this collection of nodes.
Definition at line 244 of file Element.php.
duzun\hQuery\Element::previousElementSibling | ( | ) |
Get previous element siblings for each of the elements of this collection
Definition at line 264 of file Element.php.
duzun\hQuery\Element::slice | ( | $idx, | |
$len = NULL |
|||
) |
Get a slice of current node collection.
int | $idx | - start index of an element, starts with 0. |
int | $len | - OPTIONAL number of element to slice. Defaults to all starting at $idx |
Definition at line 216 of file Element.php.
duzun\hQuery\Element::val | ( | ) |
Get value of an :input element.
Definition at line 138 of file Element.php.