lib/ phpwebtools/ class. XPath.phpSummary | | | | | elements must not start with a number. | | 1) or 2) and 3) =, != 4) <=, <, >=, > 5) +, - 6) *, div, mod 7) - (negate) 8) | | | Depending on setModMatch() one, none or multiple nodes are affected. | | Depending on setModMatch() one, none or multiple nodes are affected. | | Depending on setModMatch() one, none or multiple nodes are affected. | | Depending on setModMatch() one, none or multiple nodes are affected. | | Depending on setModMatch() one, none or multiple nodes are affected. | | Depending on setModMatch() one, none or multiple nodes are affected. |
If the node has children you *MUST* use the reference operator!E.g. $clonedNode =& cloneNode($node); Otherwise the children will not point back to the parent, they will point back to your temporary variable instead. @param $node (mixed) Either a node (hash array) or an abs. Xpath to a node in the current doc @return (&array) A node and it’s child nodes.
This does not interfere with the VariableReference syntactical element, as theseelements must not start with a number. @param $xPathQuery (string) XPath expression to be processed @return (string) The XPath expression without the literals.
The effect of the above grammar is that the order of precedence is(lowest precedence first)1) or 2) and 3) =, != 4) <=, <, >=, > 5) +, - 6) *, div, mod 7) - (negate) 8) | Between these syntactical elements we get PathExprs.
When passing a xpath-query instead of an abs. Xpath.Depending on setModMatch() one, none or multiple nodes are affected. @param $xPathQuery (string) xpath to the node (See note above). @param $autoReindex (bool) (optional, default=TRUE) Reindex the document to reflect the changes. A performance helper. See reindexNodeTree() @return (bool) TRUE on success, FALSE on error; @see setModMatch(), reindexNodeTree()
When passing a xpath-query instead of an abs. Xpath.Depending on setModMatch() one, none or multiple nodes are affected. @param $xPathQuery (string) xpath to the node (See note above). @param $data (string) String containing the content to be set. READONLY @param $autoReindex (bool) (optional, default=TRUE) Reindex the document to reflect the changes. A performance helper. See reindexNodeTree() @return (bool) TRUE on success, FALSE on error; @see setModMatch(), replaceChild(), reindexNodeTree()
When passing a xpath-query instead of an abs. Xpath.Depending on setModMatch() one, none or multiple nodes are affected. @param $xPathQuery (string) xpath to the node (See note above). @param $replacement (string) The string to replace with. @param $offset (int) (optional, default is 0) Starting offset. (Just like PHP’s substr_replace ()) @param $count (number) (optional, default is 0=ALL) Character count (Just like PHP’s substr_replace()) @param $textPartNr (int) (optional) (see _getTextSet() ) @return (bool) The new string value on success, FALSE if not found or on error @see substringData()
When passing a xpath-query instead of an abs. Xpath.Depending on setModMatch() one, none or multiple nodes are affected. @param $xPathQuery (string) xpath to the node (See note above). @param $data (string) The string to replace with. @param $offset (int) (optional, default is 0) Offset at which to insert the data. @return (bool) The new string on success, FALSE if not found or on error @see replaceData()
When passing a xpath-query instead of an abs. Xpath.Depending on setModMatch() one, none or multiple nodes are affected. @param $xPathQuery (string) to the node(s) (See note above). @param $data (string) String containing the content to be added. @param $textPartNr (int) (optional, default is 1) (see _getTextSet()) @return (bool) TRUE on success, otherwise FALSE @see _getTextSet()
When passing a xpath-query instead of an abs. Xpath.Depending on setModMatch() one, none or multiple nodes are affected. @param $xPathQuery (string) to the node(s) (See note above). @param $offset (int) (optional, default is 0) Starting offset. (Just like PHP’s substr_replace()) @param $count (number) (optional, default is 0=ALL) Character count. (Just like PHP’s substr_replace()) @param $textPartNr (int) (optional, default is 0) the text part to delete (see _getTextSet()) @return (bool) TRUE on success, otherwise FALSE @see _getTextSet()
|