Ferreteria/v0.5/@cls/cElement

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Revision as of 17:03, 12 July 2022 by Woozle (talk | contribs)
Jump to navigation Jump to search
Ferreteria class ferret\layout\cElement
tExecutableTree cElement

caContentHeader
cNavElement
caPageContent
cSectionHeader
html\caTag
caWebPage
login\caWidget

Methods

events

General event-handling is defined by tExecutableTree.

event: rendering

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