API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
DOMIT! XPath is an XPath parser.
DOMIT_XPath::_filterByChildName | ( | &$ | contextNode, |
$ | nodeName, | ||
$ | childName, | ||
$ | deep | ||
) |
Selects named elements with the specified named child
object | The context node |
string | The pattern segment containing the node expression |
string | The tag name of the matching child |
boolean | True if the selection is to be performed recursively |
Référencé par filterByChildName().
DOMIT_XPath::_filterByIndex | ( | &$ | contextNode, |
$ | nodeName, | ||
$ | index, | ||
$ | deep | ||
) |
Selects named elements of the specified index
object | The context node |
string | The pattern segment containing the node expression |
int | The index (base 1) of the matching node |
boolean | True if the selection is to be performed recursively |
Référencé par filterByIndex().
DOMIT_XPath::_selectAttribute | ( | &$ | contextNode, |
$ | attrName, | ||
$ | deep | ||
) |
Selects all attributes of the context nodes
object | The context node |
string | The attribute name, or * to match all attributes |
boolean | True if the selection is to be performed recursively |
Référencé par selectAttribute().
DOMIT_XPath::_selectNamedChild | ( | &$ | contextNode, |
$ | tagName, | ||
$ | deep = false |
||
) |
Selects all child nodes of the context node
object | The context node |
string | The element name |
boolean | True if the selection is to be performed recursively |
Référencé par selectNamedChild().
DOMIT_XPath::_selectParent | ( | &$ | contextNode, |
$ | deep = false |
||
) |
Selects parent node of the current context nodes
object | The context node |
boolean | True if the selection is to be performed recursively |
Référencé par selectParent().
DOMIT_XPath::DOMIT_XPath | ( | ) |
Constructor - creates an empty DOMIT_NodeList to store matching nodes
DOMIT_XPath::expressionToPHP | ( | $ | expression | ) |
Converts the predicate expression into a PHP expression
string | The predicate expression |
Référencé par predicateToPHP().
DOMIT_XPath::filterByChildName | ( | $ | nodeName, |
$ | childName, | ||
$ | deep | ||
) |
Selects named elements with the specified named child
string | The pattern segment containing the node expression |
string | The tag name of the matching child |
boolean | True if the selection is to be performed recursively |
Références _filterByChildName().
DOMIT_XPath::filterByIndex | ( | $ | nodeName, |
$ | index, | ||
$ | deep | ||
) |
Selects named elements of the specified index
string | The pattern segment containing the node expression |
int | The index (base 1) of the matching node |
boolean | True if the selection is to be performed recursively |
Références _filterByIndex().
Référencé par parsePredicate().
DOMIT_XPath::filterByPHPExpression | ( | $ | expression | ) |
Selects nodes that match the predicate expression
string | The predicate expression, formatted as a PHP expression |
Référencé par parsePredicate().
DOMIT_XPath::hasNamedChildElement | ( | &$ | parentNode, |
$ | nodeName | ||
) |
DOMIT_XPath::hasNamedChildElementEqualToValue | ( | &$ | parentNode, |
$ | nodeName, | ||
$ | nodeValue | ||
) |
DOMIT_XPath::hasNamedChildElementGreaterThanOrEqualToValue | ( | &$ | parentNode, |
$ | nodeName, | ||
$ | nodeValue | ||
) |
Selects nodes with child elements that are greater than or equal to the specified name and value
object | The parent node of the child elements to match |
string | The tag name to match on |
string | The text string to match on |
DOMIT_XPath::hasNamedChildElementGreaterThanValue | ( | &$ | parentNode, |
$ | nodeName, | ||
$ | nodeValue | ||
) |
DOMIT_XPath::hasNamedChildElementLessThanOrEqualToValue | ( | &$ | parentNode, |
$ | nodeName, | ||
$ | nodeValue | ||
) |
Selects nodes with child elements that are less than or equal to the specified name and value
object | The parent node of the child elements to match |
string | The tag name to match on |
string | The text string to match on |
DOMIT_XPath::hasNamedChildElementLessThanValue | ( | &$ | parentNode, |
$ | nodeName, | ||
$ | nodeValue | ||
) |
DOMIT_XPath::hasNamedChildElementNotEqualToValue | ( | &$ | parentNode, |
$ | nodeName, | ||
$ | nodeValue | ||
) |
DOMIT_XPath::initSearch | ( | &$ | currArPathSegments | ) |
Initializes the contextNode and searchType
array | The current array of path segments |
Référencé par parsePattern().
DOMIT_XPath::normalize | ( | $ | pattern | ) |
Converts long XPath syntax into abbreviated XPath syntax
string | The pattern |
Référencé par parsePattern().
& DOMIT_XPath::parsePattern | ( | &$ | node, |
$ | pattern, | ||
$ | nodeIndex = 0 |
||
) |
Parses the supplied "path"-based pattern
Object | The node from which the search is called |
string | The pattern |
Références $i, $k, $total, initSearch(), normalize(), processPatternSegment(), et splitPattern().
DOMIT_XPath::parsePredicate | ( | $ | nodeName, |
$ | patternSegment | ||
) |
Parses a predicate expression [...]
string | The pattern segment containing the node expression |
string | The pattern segment containing the predicate expression |
Références $i, $total, filterByIndex(), filterByPHPExpression(), predicateToPHP(), refilterByIndex(), selectNamedChild(), et updateNodeContainers().
Référencé par processPatternSegment().
DOMIT_XPath::predicateToPHP | ( | $ | predicate | ) |
Converts the predicate into PHP evaluable code
string | The predicate |
Références $charContainer, $currChar, $i, et expressionToPHP().
Référencé par parsePredicate().
DOMIT_XPath::processPatternSegment | ( | ) |
Generates a new globalNodeContainer of matches
Références $i, $total, parsePredicate(), selectAttribute(), selectNamedChild(), selectNodesByFunction(), selectParent(), et updateNodeContainers().
Référencé par parsePattern().
DOMIT_XPath::refilterByIndex | ( | $ | index | ) |
Selects named elements of the specified index
string | The pattern segment containing the node expression |
int | The index (base 1) of the matching node |
boolean | True if the selection is to be performed recursively |
Référencé par parsePredicate().
DOMIT_XPath::selectAttribute | ( | $ | attrName | ) |
Selects named attributes of the current context nodes
string | The attribute name, or * to match all attributes |
Références _selectAttribute().
Référencé par processPatternSegment().
DOMIT_XPath::selectNamedChild | ( | $ | tagName | ) |
Selects all child nodes of the current context nodes
string | The element name |
Références _selectNamedChild().
Référencé par parsePredicate(), et processPatternSegment().
DOMIT_XPath::selectNodesByFunction | ( | ) |
Selects any nodes of the current context nodes which match the given function
Références $total.
Référencé par processPatternSegment().
DOMIT_XPath::selectParent | ( | ) |
Selects parent node of the current context nodes
Références _selectParent().
Référencé par processPatternSegment().
DOMIT_XPath::splitPattern | ( | $ | pattern | ) |
Splits the supplied pattern into searchable segments
string | The pattern |
Référencé par parsePattern().
DOMIT_XPath::updateNodeContainers | ( | ) |
Replaces the global node container with the local node container
Référencé par parsePredicate(), et processPatternSegment().
DOMIT_XPath::$arPathSegments = array() |
DOMIT_XPath::$callingNode |
DOMIT_XPath::$charContainer |
Référencé par predicateToPHP().
DOMIT_XPath::$currChar |
Référencé par predicateToPHP().
DOMIT_XPath::$currentSegment |
DOMIT_XPath::$globalNodeContainer |
DOMIT_XPath::$localNodeContainer |
DOMIT_XPath::$nodeList |
DOMIT_XPath::$normalizationTable |
array('child::' => '', 'self::' => '.', 'attribute::' => '@', 'descendant::' => '*//', "\t" => ' ', "\x0B" => ' ')
DOMIT_XPath::$normalizationTable2 |
array(' =' => '=', '= ' => '=', ' <' => '<', ' >' => '>', '< ' => '<', '> ' => '>', ' !' => '!', '( ' => '(', ' )' => ')', ' ]' => ']', '] ' => ']', ' [' => '[', '[ ' => '[', ' /' => '/', '/ ' => '/', '"' => "'")
DOMIT_XPath::$normalizationTable3 |
array('position()=' => '', '/descendant-or-self::node()/' => "//", 'self::node()' => '.', 'parent::node()' => '..')
DOMIT_XPath::$searchType |