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

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
(Created page with "{{fmt/title|Ferreteria trait <code>ferret\{{l/ver/class|layout}}\tExecutableTwig</code>}} {| style="border: solid 1px grey; background: #eef;" |- | {{l/ver/class|tExec...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
==Methods==
==Methods==
===events===
===events===
* <code>OnEvent()</code> (FINAL) calls:
* <code>{{l/sub|OnEvent()}}</code> calls:
** <code>OnEventLocal()</code>
** <code>{{l/sub|OnEventLocal()}}</code>
** if <code>ShouldDoTwigs()</code>:
* <code>{{l/sub|OnEventLocal()}}</code>:
*** <code>DoEventTwigs()</code>
* <code>{{l/sub|DoLocalMethod()}}</code> figures out what method to call for the given {{l/ver/class|caEvent}} object
* <code>OnEventLocal</code> calls <code>DoLocalMethod()</code>
====dispatch====
* <code>DoLocalMethod()</code> (FINAL)
* {{l/sub|OnFigure()}} actually gets involved with rendering
===rendering===
* {{l/sub|OnRender()}} copies already-rendered output to the Event object
There are no rendering-specific methods implemented here.
===event handlers===
* {{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

Ferreteria trait ferret\layout\tExecutableTwig
tExecutableTwig

tExecutableTree
→ (many Feature classes)

Methods

events

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()); }

events: rendering