[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/RendererGenerators/PHP/ -> XPathConvertor.php (summary)

(no description)

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

Defines 1 class

XPathConvertor:: (10 methods):
  __construct()
  convertCondition()
  convertXPath()
  exportXPath()
  exportXPathCurrent()
  exportXPathFragment()
  exportXPathParam()
  getDefaultParser()
  getParser()
  tokenizeXPathForExport()


Class: XPathConvertor  - X-Ref


__construct(RecursiveParser $parser = null)   X-Ref
Constructor


convertCondition($expr)   X-Ref
Convert an XPath expression (used in a condition) into PHP code

This method is similar to convertXPath() but it selectively replaces some simple conditions
with the corresponding DOM method for performance reasons

param: string $expr XPath expression
return: string       PHP code

convertXPath($expr)   X-Ref
Convert an XPath expression (used as value) into PHP code

param: string $expr XPath expression
return: string       PHP code

exportXPath($expr)   X-Ref
Export an XPath expression as PHP with special consideration for XPath variables

Will return PHP source representing the XPath expression, with special consideration for XPath
variables which are returned as a method call to XPath::export()

param: string $expr XPath expression
return: string       PHP representation of the expression

exportXPathCurrent()   X-Ref
Convert a "current()" XPath expression to its PHP source representation

return: string

exportXPathFragment($fragment)   X-Ref
Convert a fragment of an XPath expression to its PHP source representation

param: string $fragment
return: string

exportXPathParam($param)   X-Ref
Convert an XSLT parameter to its PHP source representation

param: string $param Parameter, including the leading $
return: string

getDefaultParser()   X-Ref
Generate and return the a parser with the default set of matchers

return: RecursiveParser

getParser()   X-Ref
Return (and if necessary, create) the cached instance of the XPath parser

return: RecursiveParser

tokenizeXPathForExport($expr)   X-Ref
Tokenize an XPath expression for use in PHP

param: string $expr XPath expression
return: array



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1