Ferreteria/v0.5/@cls/tExecutableTwig: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
==Methods== | ==Methods== | ||
===events=== | ===events=== | ||
* <code>OnEvent()</code> | * <code>{{l/sub|OnEvent()}}</code> calls: | ||
** <code>OnEventLocal()</code> | ** <code>{{l/sub|OnEventLocal()}}</code> | ||
* <code>OnEventLocal | * <code>{{l/sub|OnEventLocal()}}</code>: | ||
* <code>DoLocalMethod()</code> | * <code>{{l/sub|DoLocalMethod()}}</code> figures out what method to call for the given {{l/ver/class|caEvent}} object | ||
====dispatch==== | ====dispatch==== | ||
* {{l/ | * {{l/sub|OnFigure()}} actually gets involved with rendering | ||
* {{l/ | * {{l/sub|OnRender()}} copies already-rendered output to the Event object | ||
* {{l/ | ===event handlers=== | ||
===rendering=== | * {{l/sub|OnBuild()}} | ||
* {{l/sub|OnFigure()}} | |||
* {{l/sub|OnRender()}} | |||
<syntaxhighlight lang=php> | |||
protected function OnBuild(cEventNodeFigure $oe) : void {} // STUB | |||
protected function OnFigure(cEventNodeFigure $oe) : void { $this->StoreRendered($this->RenderOutput()); } | |||
protected function OnRender(cEventNodeRender $oe) : void { $oe->Append($this->FetchRendered()); } | |||
</syntaxhighlight> | |||
===events: rendering=== | |||
* {{l/sub|StoreRendered()}} | |||
* {{l/sub|FetchRendered()}} | |||
* {{l/sub|RenderOutput()}} |
Latest revision as of 15:28, 2 December 2022
tExecutableTwig |
→ tExecutableTree |
- file: layout/elem/trait.php
Methods
events
OnEvent()
calls:OnEventLocal()
:DoLocalMethod()
figures out what method to call for the given caEvent object
dispatch
- OnFigure() actually gets involved with rendering
- OnRender() copies already-rendered output to the Event object
event handlers
protected function OnBuild(cEventNodeFigure $oe) : void {} // STUB
protected function OnFigure(cEventNodeFigure $oe) : void { $this->StoreRendered($this->RenderOutput()); }
protected function OnRender(cEventNodeRender $oe) : void { $oe->Append($this->FetchRendered()); }