Ferreteria/v0.5/@cls/tExecutableTree: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
No edit summary
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
|}
|}
* '''file''': {{l/ferreteria/code|layout/elem/trait.php}}
* '''file''': {{l/ferreteria/code|layout/elem/trait.php}}
==About==
This trait extends {{l/ver/class|tExecutableTwig}} by dispatching events to sub-twigs.
==Methods==
==Methods==
===events===
===events===
* <syntaxhighlight lang=php inline>final public function OnEvent(caEvent $oe) : void { /* ... */ }</syntaxhighlight>
* {{l/sub|OnEvent()}} calls these:
** <syntaxhighlight lang=php inline>$this->OnEventLocal($oe);</syntaxhighlight>
** {{l/sub|DoEventTwigs()}} is implemented as you might expect.
** <syntaxhighlight lang=php inline>if ($this->ShouldDoTwigs())</syntaxhighlight>, then:
** {{l/sub|OnEventLocal()}} is inherited from {{l/ver/class|tExecutableTwig}}
*** <syntaxhighlight lang=php inline>$this->DoEventTwigs($oe);</syntaxhighlight>
====rendering====
* <code>OnEventLocal()</code> comes from {{l/ver/class|tExecutableTwig}}
* {{l/sub|RenderValue()}}
===rendering===
* {{l/sub|RenderBranch()}}
No rendering-specific methods are specified here, so there aren't any defined at this point.
* {{l/sub|RenderTwigs()}}

Revision as of 15:41, 2 December 2022

Ferreteria trait ferret\layout\tExecutableTree
tExecutableTwig tExecutableTree cElement

About

This trait extends tExecutableTwig by dispatching events to sub-twigs.

Methods

events

rendering