[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/Helpers/TemplateParser/ -> Parser.php (summary)

(no description)

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

Defines 1 class

Parser:: (17 methods):
  __construct()
  parse()
  appendAVT()
  appendLiteralOutput()
  appendConditionalAttributes()
  appendXPathOutput()
  parseChildren()
  parseNode()
  parseXslApplyTemplates()
  parseXslAttribute()
  parseXslChoose()
  parseXslComment()
  parseXslCopyOf()
  parseXslElement()
  parseXslIf()
  parseXslText()
  parseXslValueOf()


Class: Parser  - X-Ref


__construct(Normalizer $normalizer)   X-Ref

param: Normalizer $normalizer
return: void

parse($template)   X-Ref
Parse a template into an internal representation

param: string      $template Source template
return: DOMDocument           Internal representation

appendAVT(DOMElement $parentNode, $avt)   X-Ref
Append <output/> elements corresponding to given AVT

param: DOMElement $parentNode Parent node
param: string     $avt        Attribute value template
return: void

appendLiteralOutput(DOMElement $parentNode, $content)   X-Ref
Append an <output/> element with literal content to given node

param: DOMElement $parentNode Parent node
param: string     $content    Content to output
return: void

appendConditionalAttributes(DOMElement $parentNode, $expr)   X-Ref
Append the structure for a <xsl:copy-of/> element to given node

param: DOMElement $parentNode Parent node
param: string     $expr       Select expression, which is should only contain attributes
return: void

appendXPathOutput(DOMElement $parentNode, $expr)   X-Ref
Append an <output/> element for given XPath expression to given node

param: DOMElement $parentNode Parent node
param: string     $expr       XPath expression
return: void

parseChildren(DOMElement $ir, DOMElement $parent)   X-Ref
Parse all the children of a given element

param: DOMElement $ir     Node in the internal representation that represents the parent node
param: DOMElement $parent Parent node
return: void

parseNode(DOMElement $ir, DOMElement $node)   X-Ref
Parse a given node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node Node to parse
return: void

parseXslApplyTemplates(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:apply-templates/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:apply-templates/> node
return: void

parseXslAttribute(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:attribute/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:attribute/> node
return: void

parseXslChoose(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:choose/> node and its <xsl:when/> and <xsl:otherwise/> children into the
internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:choose/> node
return: void

parseXslComment(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:comment/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:comment/> node
return: void

parseXslCopyOf(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:copy-of/> node into the internal representation

NOTE: only attributes are supported

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:copy-of/> node
return: void

parseXslElement(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:element/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:element/> node
return: void

parseXslIf(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:if/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:if/> node
return: void

parseXslText(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:text/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:text/> node
return: void

parseXslValueOf(DOMElement $ir, DOMElement $node)   X-Ref
Parse an <xsl:value-of/> node into the internal representation

param: DOMElement $ir   Node in the internal representation that represents the node's parent
param: DOMElement $node <xsl:value-of/> node
return: void



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