Ferreteria/v0.5/@cls/cElement: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 29: | Line 29: | ||
*** else return empty string | *** else return empty string | ||
* {{l/ver/meth|layout/event|RenderTwigs}}<syntaxhighlight lang=php inline>: string { /* call twig->RenderOutput() for each twig */ }</syntaxhighlight> | * {{l/ver/meth|layout/event|RenderTwigs}}<syntaxhighlight lang=php inline>: string { /* call twig->RenderOutput() for each twig */ }</syntaxhighlight> | ||
==Removed== | |||
* {{l/ver/meth|layout/event|ShouldDoTwigs}}<syntaxhighlight lang=php inline>: bool { return TRUE; }</syntaxhighlight> | * {{l/ver/meth|layout/event|ShouldDoTwigs}}<syntaxhighlight lang=php inline>: bool { return TRUE; }</syntaxhighlight> | ||
Revision as of 22:55, 3 December 2022
| cElement |
→ caContentHeader |
- file: layout/elem/1.php
Methods
events
General event-handling is defined by tExecutableTree.
event dispatch
No change from tExecutableTwig.
event: rendering
- RenderOutput()
: string { return $this->RenderValue(); } - RenderValue()
: string { return $this->RenderBranch(); } - RenderBranch()
: string { /*...*/ }:if $this->ShouldDoTwigs(), then:return $this->RenderTwigs();- else return empty string
- RenderTwigs()
: string { /* call twig->RenderOutput() for each twig */ }
Removed
- ShouldDoTwigs()
: bool { return TRUE; }