[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/vendor/symfony/css-selector/XPath/ -> Translator.php (summary)

(no description)

File Size: 230 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Translator:: (13 methods):
  __construct()
  getXpathLiteral()
  cssToXPath()
  selectorToXPath()
  registerExtension()
  getExtension()
  registerParserShortcut()
  nodeToXPath()
  addCombination()
  addFunction()
  addPseudoClass()
  addAttributeMatching()
  parseSelectors()


Class: Translator  - X-Ref

XPath expression translator interface.

This component is a port of the Python cssselect library,
which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.

__construct(ParserInterface $parser = null)   X-Ref


getXpathLiteral(string $element)   X-Ref
No description

cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::')   X-Ref
{@inheritdoc}


selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::')   X-Ref
{@inheritdoc}


registerExtension(Extension\ExtensionInterface $extension)   X-Ref

return: $this

getExtension(string $name)   X-Ref


registerParserShortcut(ParserInterface $shortcut)   X-Ref

return: $this

nodeToXPath(NodeInterface $node)   X-Ref


addCombination(string $combiner, NodeInterface $xpath, NodeInterface $combinedXpath)   X-Ref


addFunction(XPathExpr $xpath, FunctionNode $function)   X-Ref


addPseudoClass(XPathExpr $xpath, string $pseudoClass)   X-Ref


addAttributeMatching(XPathExpr $xpath, string $operator, string $attribute, $value)   X-Ref


parseSelectors(string $css)   X-Ref

return: SelectorNode[]