[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/TemplateNormalizations/ -> MergeIdenticalConditionalBranches.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: 177 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MergeIdenticalConditionalBranches:: (5 methods):
  collectCompatibleBranches()
  mergeBranches()
  mergeCompatibleBranches()
  mergeConsecutiveBranches()
  normalizeElement()


Class: MergeIdenticalConditionalBranches  - X-Ref

Merge xsl:when branches if they have identical content

NOTE: may fail if branches have identical equality expressions, e.g. "@a=1" and "@a=1"
collectCompatibleBranches(DOMNode $node)   X-Ref
Collect consecutive xsl:when elements that share the same kind of equality tests

Will return xsl:when elements that test a constant part (e.g. a literal) against the same
variable part (e.g. the same attribute)

param: DOMNode      $node First node to inspect
return: DOMElement[]

mergeBranches(array $nodes)   X-Ref
Merge identical xsl:when elements from a list

param: DOMElement[] $nodes
return: void

mergeCompatibleBranches(DOMElement $choose)   X-Ref
Inspect the branches of an xsl:choose element and merge branches if their content is identical
and their order does not matter

param: DOMElement $choose xsl:choose element
return: void

mergeConsecutiveBranches(DOMElement $choose)   X-Ref
Inspect the branches of an xsl:choose element and merge consecutive branches if their content
is identical

param: DOMElement $choose xsl:choose element
return: void

normalizeElement(DOMElement $element)   X-Ref
{@inheritdoc}




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