[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/TemplateNormalizations/ -> InlineInferredValues.php (summary)

(no description)

Copyright: Copyright (c) 2010-2022 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 112 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

InlineInferredValues:: (4 methods):
  normalizeElement()
  inlineInferredValue()
  replaceAttribute()
  replaceValueOf()


Class: InlineInferredValues  - X-Ref

Inline the text content of a node or the value of an attribute where it's known

Will replace
<xsl:if test="@foo='Foo'"><xsl:value-of select="@foo"/></xsl:if>
with
<xsl:if test="@foo='Foo'">Foo</xsl:if>

This should be applied after control structures have been optimized
normalizeElement(DOMElement $element)   X-Ref
{@inheritdoc}


inlineInferredValue(DOMNode $node, $expr, $value)   X-Ref
Replace the inferred value in given node and its descendants

param: DOMNode $node  Context node
param: string  $expr  XPath expression
param: string  $value Inferred value
return: void

replaceAttribute(DOMAttr $attribute, $expr, $value)   X-Ref
Replace an expression with a literal value in given attribute

param: DOMAttr $attribute
param: string  $expr
param: string  $value
return: void

replaceValueOf(DOMElement $valueOf, $value)   X-Ref
No description



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1