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

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 4: Line 4:
|
|
{{l/ver/class|tExecutableTree}} &rarr;<br>
{{l/ver/class|tExecutableTree}} &rarr;<br>
{{l/ver/class|tRenderableTwig}} &rarr;
{{l/ver/class|tRenderableTree}} &rarr;
| {{l/ver/class|cElement}}
| {{l/ver/class|cElement}}
|
|

Latest revision as of 19:21, 20 August 2023

Ferreteria class ferret\layout\cElement

tExecutableTree
tRenderableTree

cElement

caContentHeader
cNavElement
caPageContent
cSectionHeader
html\caTag
caWebPage
login\caWidget

Methods

events

General event-handling is defined by tExecutableTree.

event dispatch

No change from tExecutableTwig.

event: rendering

  • RenderOutput(): string { return $this->RenderValue(); }
  • RenderValue(): string { return $this->RenderBranch(); }
  • RenderBranch(): string { /*...*/ }:
    • if $this->ShouldDoTwigs(), then:
      • return $this->RenderTwigs();
      • else return empty string
  • RenderTwigs(): string { /* call twig->RenderOutput() for each twig */ }

Removed