Ferreteria/v0.5/@cls/cElement

From Woozle Writes Code
Jump to navigation Jump to search
Ferreteria class ferret\layout\cElement

tExecutableTree
tRenderableTwig

cElement

caContentHeader
cNavElement
caPageContent
cSectionHeader
html\caTag
caWebPage
login\caWidget

Methods

events

General event-handling is defined by tExecutableTree.

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 */ }
  • ShouldDoTwigs(): bool { return TRUE; }