Ferreteria/v0.5/@cls/cElement: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
No edit summary |
|||
Line 19: | Line 19: | ||
===events=== | ===events=== | ||
General event-handling is defined by {{l/ver/class|tExecutableTree}}. | General event-handling is defined by {{l/ver/class|tExecutableTree}}. | ||
===event dispatch=== | |||
No change from {{l/ver/class|tExecutableTwig}}. | |||
===event: rendering=== | ===event: rendering=== | ||
* {{l/ver/meth|layout/event|RenderOutput}}<syntaxhighlight lang=php inline>: string { return $this->RenderValue(); }</syntaxhighlight> | * {{l/ver/meth|layout/event|RenderOutput}}<syntaxhighlight lang=php inline>: string { return $this->RenderValue(); }</syntaxhighlight> |
Revision as of 00:36, 23 July 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 */ }
- ShouldDoTwigs()
: bool { return TRUE; }