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

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
(eliminated unnecessary RenderDisplay() method)
 
Line 8: Line 8:
==Methods==
==Methods==
===rendering===
===rendering===
* <code>RenderOutput()</code> '''overrides''' {{l/ver/class|cElement}}: <code>return $this->RenderDisplay();</code>
* <code>RenderOutput()</code> '''overrides''' {{l/ver/class|cElement}}: assembles output from <code>GetTitleString()</code> and <code>RenderWidgets()</code>
* <code>RenderDisplay()</code> '''overrides''' {{l/ver/class|cElement}}: assembles output from GetTitleString() and <code>RenderWidgets()</code>
* <code>RenderMenu()</code> is new (what calls it?)
* <code>RenderValue()</code> is provided by {{l/ver/class|cElement}}
* <code>RenderValue()</code> is provided by {{l/ver/class|cElement}}
* <code>RenderBranch()</code> is provided by {{l/ver/class|cElement}}
* <code>RenderBranch()</code> is provided by {{l/ver/class|cElement}}
* <code>RenderTwigs()</code> is provided by {{l/ver/class|cElement}}
* <code>RenderTwigs()</code> is provided by {{l/ver/class|cElement}}
 
* <code>RenderWidgets()</code> (new) calls <code>RenderMenu()</code>
It looks like RenderOutput() and/or RenderDisplay() may need renaming. RenderDisplay() isn't even part of the sequence anymore.
* <code>RenderMenu()</code> (new) gets the Menu element (if there is one) and returns Menu<code>->RenderOutput()</code>. (If not found, returns empty string.)

Latest revision as of 15:14, 9 July 2022

class ferret\layout\html\cLoginContentHeader
caContentHeader cLoginContentHeader

Methods

rendering

  • RenderOutput() overrides cElement: assembles output from GetTitleString() and RenderWidgets()
  • RenderValue() is provided by cElement
  • RenderBranch() is provided by cElement
  • RenderTwigs() is provided by cElement
  • RenderWidgets() (new) calls RenderMenu()
  • RenderMenu() (new) gets the Menu element (if there is one) and returns Menu->RenderOutput(). (If not found, returns empty string.)