constructor __construct [line 95]
method count [line 351]
Get element count (Countable interface)
Tags:
Implementation of:
- Countable::count
method evaluate [line 509]
void evaluate(
string
$expr, [
$context = NULL])
|
|
Gives access to an xpath evaluate on the current document
Tags:
Parameters:
method formatOutput [line 310]
FluentDOM formatOutput(
[
$contentType = NULL])
|
|
Formats the current document, resets internal node array and other properties.
The document is saved and reloaded, all variables with DOMNodes of this document will get invalid.
Tags:
Parameters:
method getIterator [line 337]
Get an iterator for this object.
Tags:
Implementation of:
- IteratorAggregate::getIterator
method item [line 295]
DOMNode item(
integer
$position)
|
|
The item() method is used to access elements in the node list, like in a DOMNodelist.
Tags:
Parameters:
method load [line 106]
void load(
mixed
$source, [string
$contentType = 'text/xml'])
|
|
Load a $source. The type of the source depends on the loaders. If no explicit loaders are set FluentDOM will use a set of default loaders for xml/html and DOM.
Tags:
Parameters:
method namespaces [line 523]
Register namespaces and or get namespaces
Tags:
Parameters:
method offsetExists [line 378]
boolean offsetExists(
integer
$offset)
|
|
Check if index exists in internal array
Tags:
Implementation of:
- ArrayAccess::offsetExists
Parameters:
method offsetGet [line 400]
DOMNode|NULL offsetGet(
integer
$offset)
|
|
Get element from internal array
Tags:
Implementation of:
- ArrayAccess::offsetGet
Parameters:
method offsetSet [line 367]
void offsetSet(
integer
$offset, mixed
$value)
|
|
If somebody tries to modify the internal array throw an exception.
Tags:
Implementation of:
- ArrayAccess::offsetSet
Parameters:
method offsetUnset [line 389]
void offsetUnset(
integer
$offset)
|
|
If somebody tries to remove an element from the internal array throw an exception.
Tags:
Implementation of:
- ArrayAccess::offsetUnset
Parameters:
method push [line 428]
void push(
DOMNode|DOMNodeList|FluentDOM
$elements, [boolean
$ignoreTextNodes = FALSE])
|
|
Push new element(s) an the internal element list
Tags:
Parameters:
method setLoaders [line 173]
Define own loading handlers
Tags:
Parameters:
method spawn [line 413]
Create a new instance of the same class with $this as the parent. This is used for the chaining.
Tags:
method unique [line 458]
Sorts an array of DOM nodes based on document position, in place, with the duplicates removed.
Note that this only works on arrays of DOM nodes, not strings or numbers.
Tags:
Parameters:
method _applyContentToNodes [line 912]
void _applyContentToNodes(
array|DOMNodeList
$targetNodes, string|array|DOMElement|DOMText|DOMNodeList|Iterator|callback|Closure
$content, callback|Closure
$handler)
|
|
Use a handler callback to apply a content argument to each node $targetNodes. The content argument can be an easy setter function
Tags:
Parameters:
method _executeEasySetter [line 943]
array _executeEasySetter(
callback|Closure
$easySetter, DOMNode
$node, integer
$index, string
$value)
|
|
Execute the easy setter function for a node and return the new elements
Tags:
Parameters:
method _getContentElement [line 815]
DOMElement _getContentElement(
string|array|DOMElement|DOMNodeList|Iterator
$content)
|
|
Convert $content to a DOMElement. If $content contains several elements use the first.
Tags:
Parameters:
method _getContentFragment [line 746]
array _getContentFragment(
string
$content, [boolean
$includeTextNodes = TRUE], [integer
$limit = 0])
|
|
Convert a given content xml string into and array of nodes
Tags:
Parameters:
method _getContentNodes [line 775]
array _getContentNodes(
string|array|DOMElement|DOMText|Iterator
$content, [boolean
$includeTextNodes = TRUE], [integer
$limit = 0])
|
|
Convert a given content into and array of nodes
Tags:
Parameters:
method _getContextNodes [line 850]
void _getContextNodes(
$selector)
|
|
Tags:
Parameters:
method _getHandler [line 900]
string|object _getHandler(
)
|
|
Get the class/object providing the handler functions
Tags:
method _getInnerXml [line 863]
string _getInnerXml(
DOMElement
$node)
|
|
Get the inner xml of a given node or in other words the xml of all children.
Tags:
Parameters:
method _getTargetNodes [line 832]
array _getTargetNodes(
string|array|DOMNode|DOMNodeList|Iterator
$selector)
|
|
Get the target nodes from a given $selector.
A string will be used as XPath expression.
Tags:
Parameters:
method _initLoaders [line 146]
Initialize default loaders if they are not already initialized
Tags:
method _inList [line 602]
boolean _inList(
DOMNode
$node)
|
|
Check if object is already in internal list
Tags:
Parameters:
method _isCallback [line 719]
boolean _isCallback(
callback
$callback, boolean
$allowGlobalFunctions, boolean
$silent)
|
|
check if parameter is a valid callback function
Tags:
Parameters:
method _isNCName [line 637]
boolean _isNCName(
string
$name, [integer
$offset = 0], [integer
$length = 0])
|
|
Validate string as qualified node name part (namespace or local name)
Tags:
Parameters:
method _isNode [line 680]
boolean _isNode(
DOMNode
$node, [boolean
$ignoreTextNodes = FALSE])
|
|
Check if the DOMNode is DOMElement or DOMText with content
Tags:
Parameters:
method _isNodeList [line 700]
boolean _isNodeList(
$elements, DOMNodeList|DOMDocumentFragment|Iterator|IteratorAggregate|array
$list)
|
|
Check if $elements is a iterateable node list
Tags:
Parameters:
method _isQName [line 617]
boolean _isQName(
string
$name)
|
|
Validate string as qualified node name
Tags:
Parameters:
method _match [line 568]
DOMNodeList _match(
string
$expr, [DOMNode
$context = NULL])
|
|
Match XPath expression agains context and return matched elements.
Tags:
Parameters:
method _removeNodes [line 883]
array _removeNodes(
string|array|DOMNode|DOMNodeList|Iterator
$selector)
|
|
Remove nodes from document tree
Tags:
Parameters:
method _setContentType [line 189]
void _setContentType(
string
$value)
|
|
Setter for FluentDOM::_contentType property
Tags:
Parameters:
method _test [line 583]
boolean _test(
string
$expr, [DOMNode
$context = NULL])
|
|
Test xpath expression against context and return true/false
Tags:
Parameters:
method _uniqueSort [line 499]
array _uniqueSort(
array
$array)
|
|
Sorts the selected nodes, with the duplicates removed.
Tags:
Parameters:
method _xpath [line 542]
Get a XPath object associated with the internal DOMDocument and register default namespaces from the document element if availiable.
Tags:
method __get [line 217]
mixed __get(
string
$name)
|
|
implement dynamic properties using magic methods
Tags:
Parameters:
method __isset [line 260]
boolean __isset(
string
$name)
|
|
support isset for dynamic properties length and document
Tags:
Parameters:
method __set [line 239]
void __set(
string
$name, mixed
$value)
|
|
block changes of dynamic readonly property length
Tags:
Parameters:
method __toString [line 278]
Return the XML output of the internal dom document
Tags: