method add [line 334]
FluentDOM add(
string
$expr, [
$context = NULL])
|
|
Adds more elements, matched by the given expression, to the set of matched elements.
Tags:
Parameters:
method addClass [line 1345]
FluentDOM addClass(
string|callback|Closure
$class)
|
|
Adds the specified class(es) to each of the set of matched elements.
Tags:
Parameters:
method after [line 914]
FluentDOM after(
string|array|DOMNode|DOMNodeList|Iterator|callback|Closure
$content)
|
|
Insert content after each of the matched elements.
Tags:
Parameters:
method andSelf [line 699]
Add the previous selection to the current selection.
Tags:
method append [line 811]
FluentDOM append(
string|array|DOMNode|Iterator
$content)
|
|
Append content to the inside of every matched element.
Tags:
Parameters:
method appendTo [line 844]
Append all of the matched elements to another, specified, set of elements.
Returns all of the inserted elements.
Tags:
Parameters:
method attr [line 1251]
string|FluentDOM attr(
string|array
$attribute, [string|callback|Closure
$value = NULL])
|
|
Access a property on the first matched element or set the attribute(s) of all matched elements
Tags:
Parameters:
method before [line 931]
FluentDOM before(
string|array|DOMNode|DOMNodeList|Iterator|callback|Closure
$content)
|
|
Insert content before each of the matched elements.
Tags:
Parameters:
method children [line 363]
Get a set of elements containing of the unique immediate childnodes including only elements (not textnodes) of each of the matched set of elements.
Tags:
Parameters:
method closest [line 657]
FluentDOM closest(
string
$expr, [
$context = NULL])
|
|
Get a set of elements containing the closest parent element that matches the specified selector, the starting element included.
Tags:
Parameters:
method contents [line 386]
Get a set of elements containing all of the unique immediate childnodes including elements and textnodes of each of the matched set of elements.
Tags:
method each [line 76]
Execute a function within the context of every matched element.
Tags:
Parameters:
method end [line 712]
Revert the most recent traversing operation, changing the set of matched elements to its previous state.
Tags:
method eq [line 109]
Reduce the set of matched elements to a single element.
Tags:
Parameters:
method filter [line 129]
Removes all elements from the set of matched elements that do not match the specified expression(s).
Tags:
Parameters:
method find [line 403]
FluentDOM find(
string
$expr, [boolean
$useDocumentContext = FALSE])
|
|
Searches for descendent elements that match the specified expression.
Tags:
Parameters:
method first [line 677]
Get a set of elements containing only the first of the currently selected elements.
Tags:
method get [line 151]
array() get(
[integer|NULL
$position = NULL])
|
|
Retrieve the matched DOM elements in an array. A negative position will be counted from the end.
Tags:
Parameters:
method has [line 208]
boolean has(
string|DOMNode
$expr)
|
|
Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
Tags:
Parameters:
method hasClass [line 1355]
boolean hasClass(
string|callback|Closure
$class)
|
|
Returns true if the specified class is present on at least one of the set of matched elements.
Tags:
Parameters:
method index [line 171]
integer index(
[NULL|string|DOMNode|DOMNodelist|Iterator
$expr = NULL])
|
|
Search for a given element from among the matched elements.
Tags:
Parameters:
method insertAfter [line 948]
FluentDOM insertAfter(
string|array|DOMNode|DOMNodeList|Iterator
$selector)
|
|
Insert all of the matched elements after another, specified, set of elements.
Tags:
Parameters:
method insertBefore [line 971]
FluentDOM insertBefore(
string|array|DOMNode|DOMNodeList|Iterator
$selector)
|
|
Insert all of the matched elements before another, specified, set of elements.
Tags:
Parameters:
method is [line 236]
boolean is(
string
$expr)
|
|
Checks the current selection against an expression and returns true, if at least one element of the selection fits the given expression.
Tags:
Parameters:
method last [line 686]
Get a set of elements containing only the last of the currently selected elements.
Tags:
method map [line 254]
array map(
callback
$function)
|
|
Translate a set of elements in the FluentDOM object into another set of values in an array (which may, or may not contain elements).
If the callback function returns an array each element of the array will be added to the result array. All other variable types are put directly into the result array.
Tags:
Parameters:
method next [line 424]
Get a set of elements containing the unique next siblings of each of the given set of elements.
Tags:
Parameters:
method nextAll [line 448]
Find all sibling elements after the current element.
Tags:
Parameters:
method nextUntil [line 471]
Get all following siblings of each element up to but not including the element matched by the selector.
Tags:
Parameters:
method not [line 285]
Removes elements matching the specified expression from the set of matched elements.
Tags:
Parameters:
method parent [line 495]
Get a set of elements containing the unique parents of the matched set of elements.
Tags:
method parents [line 514]
Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
Tags:
Parameters:
method parentsUntil [line 535]
FluentDOM parentsUntil(
[string
$expr = NULL])
|
|
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector.
Tags:
Parameters:
method prepend [line 867]
FluentDOM prepend(
string|array|DOMNode|Iterator
$content)
|
|
Prepend content to the inside of every matched element.
Tags:
Parameters:
method prependTo [line 887]
Prepend all of the matched elements to another, specified, set of elements.
Returns all of the inserted elements.
Tags:
Parameters:
method prev [line 558]
Get a set of elements containing the unique previous siblings of each of the matched set of elements.
Tags:
Parameters:
method prevAll [line 582]
Find all sibling elements in front of the current element.
Tags:
Parameters:
method prevUntil [line 605]
Get all preceding siblings of each element up to but not including the element matched by the selector.
Tags:
Parameters:
method remove [line 1201]
Removes all matched elements from the DOM.
Tags:
Parameters:
method removeAttr [line 1307]
Remove an attribute from each of the matched elements.
Tags:
Parameters:
method removeClass [line 1374]
FluentDOM removeClass(
[string|callback|Closure
$class = ''])
|
|
Removes all or the specified class(es) from the set of matched elements.
Tags:
Parameters:
method replaceAll [line 1155]
FluentDOM replaceAll(
string|array|DOMNode|DOMNodeList|Iterator
$selector)
|
|
Replaces the elements matched by the specified selector with the matched elements.
Tags:
Parameters:
method replaceWith [line 1139]
FluentDOM replaceWith(
string|array|DOMNode|DOMNodeList|Iterator|callback|Closure
$content)
|
|
Replaces all matched elements with the specified HTML or DOM elements.
This returns the JQuery element that was just replaced, which has been removed from the DOM.
Tags:
Parameters:
method siblings [line 631]
Get a set of elements containing all of the unique siblings of each of the matched set of elements.
Tags:
Parameters:
method slice [line 309]
FluentDOM slice(
integer
$start, [integer
$end = NULL])
|
|
Selects a subset of the matched elements.
Tags:
Parameters:
method text [line 780]
string|FluentDOM text(
[string|callback|Closure
$text = NULL])
|
|
Get the combined text contents of all matched elements or set the text contents of all matched elements.
Tags:
Parameters:
method toArray [line 94]
Retrieve the matched DOM elements in an array.
Tags:
method toggleClass [line 1388]
FluentDOM toggleClass(
string|callback|Closure
$class, [NULL|boolean
$switch = NULL])
|
|
Adds the specified class if the switch is TRUE, removes the specified class if the switch is FALSE, toggles the specified class if the switch is NULL.
Tags:
Parameters:
method wrap [line 1043]
FluentDOM wrap(
string|array|DOMNode|DOMNodeList|Iterator|callback|Closure
$content)
|
|
Wrap each matched element with the specified content.
If $content contains several elements the first one is used
Tags:
Parameters:
method wrapAll [line 1058]
FluentDOM wrapAll(
string|array|DOMNode|Iterator
$content)
|
|
Wrap al matched elements with the specified content
If the matched elemetns are not siblings, wrap each group of siblings.
Tags:
Parameters:
method wrapInner [line 1112]
FluentDOM wrapInner(
string|array|DOMNode|DOMNodeList|Iterator
$content)
|
|
Wrap the inner child contents of each matched element (including text nodes) with an XML structure.
Tags:
Parameters:
method xml [line 731]
string|FluentDOM xml(
[string|Callback|Closure
$xml = NULL])
|
|
Get or set the xml contents of the first matched element.
Tags:
Parameters:
method _cloneNodes [line 1231]
Clone matched DOM Elements and select the clones.
This is the clone() method - but because clone is a reserved word we can no declare it directly
Tags:
method _emptyNodes [line 1184]
Remove all child nodes from the set of matched elements.
This is the empty() method - but because empty is a reserved word we can no declare it directly
Tags:
method _wrap [line 998]
FluentDOM _wrap(
array
$elements, string|array|DOMNode|DOMNodeList|Iterator|callback|Closure
$content)
|
|
Wrap $content around a set of elements
Tags:
Parameters:
method __call [line 56]
mixed __call(
string
$name, array
$arguments)
|
|
declaring an empty() or clone() method will crash the parser so we use some magic
Tags:
Parameters: