| [ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 272 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
OptimizeChoose:: (13 methods):
adoptChildren()
matchBranches()
matchOnlyChild()
moveFirstChildBefore()
moveLastChildAfter()
optimizeChoose()
optimizeCommonFirstChild()
optimizeCommonLastChild()
optimizeCommonOnlyChild()
optimizeEmptyBranch()
optimizeEmptyOtherwise()
optimizeSingleBranch()
reparentChild()
Class: OptimizeChoose - X-Ref
| adoptChildren(DOMElement $branch) X-Ref |
| Adopt the children of given element's only child param: DOMElement $branch return: void |
| matchBranches($childType) X-Ref |
| Test whether all branches of current xsl:choose element share a common firstChild/lastChild param: string $childType Either firstChild or lastChild return: bool |
| matchOnlyChild() X-Ref |
| Test whether all branches of current xsl:choose element have a single child with the same start tag return: bool |
| moveFirstChildBefore() X-Ref |
| Move the firstChild of each branch before current xsl:choose return: void |
| moveLastChildAfter() X-Ref |
| Move the lastChild of each branch after current xsl:choose return: void |
| optimizeChoose() X-Ref |
| {@inheritdoc} |
| optimizeCommonFirstChild() X-Ref |
| Optimize current xsl:choose by moving out the first child of each branch if they match return: void |
| optimizeCommonLastChild() X-Ref |
| Optimize current xsl:choose by moving out the last child of each branch if they match return: void |
| optimizeCommonOnlyChild() X-Ref |
| Optimize current xsl:choose by moving out only child of each branch if they match This will reorder xsl:choose/xsl:when/div into div/xsl:choose/xsl:when if every branch has the same only child (excluding the child's own descendants) return: void |
| optimizeEmptyBranch() X-Ref |
| Switch the logic of an xsl:otherwise if the only other branch is empty return: void |
| optimizeEmptyOtherwise() X-Ref |
| Optimize away the xsl:otherwise child of current xsl:choose if it's empty return: void |
| optimizeSingleBranch() X-Ref |
| Replace current xsl:choose with xsl:if if it has only one branch return: void |
| reparentChild() X-Ref |
| Reorder the current xsl:choose tree to make it a child of the first child of its first branch This will reorder xsl:choose/xsl:when/div into div/xsl:choose/xsl:when return: void |
| Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |