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 2: | Line 2: | ||
{| style="border: solid 1px grey; background: #eef;" | {| style="border: solid 1px grey; background: #eef;" | ||
|- | |- | ||
| {{l/ver/class|tExecutableTree}} | | | ||
| → {{l/ver/class|cElement}} | {{l/ver/class|tExecutableTree}} →<br> | ||
{{l/ver/class|tRenderableTwig}} → | |||
| {{l/ver/class|cElement}} | |||
| | | | ||
→ {{l/ver/class|caContentHeader}}<br> | → {{l/ver/class|caContentHeader}}<br> |
Revision as of 16:48, 21 July 2022
cElement |
→ caContentHeader |
- file: layout/elem/1.php
Methods
events
General event-handling is defined by tExecutableTree.
event: rendering
public function RenderOutput() : string { return $this->RenderValue(); }
protected function RenderValue() : string { return $this->RenderBranch(); }
protected function RenderBranch() : string { /*...*/ }
:if $this->ShouldDoTwigs()
, then:return $this->RenderTwigs();
- else return empty string
protected function RenderTwigs() : string { /* call twig->RenderOutput() for each twig */ }
protected function ShouldDoTwigs() : bool { return TRUE; }