Ferreteria/v0.5/@cls/tExecutableTree
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
tExecutableTwig → | tExecutableTree | → cElement |
- file: layout/elem/trait.php
About
This trait extends tExecutableTwig by dispatching events to sub-twigs.
Methods
event dispatch
- OnEvent() calls the following, though the exact order has changed:
- if ShouldDoTwigs(), then DoEventTwigs()
- OnEventLocal()
- DoEventTwigs() is implemented as you might expect.
- OnEventLocal() comes from tExecutableTwig
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()); }