Ferreteria/v0.5/@cls/caNavElement: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
(Created page with "{{fmt/title|Ferreteria class <code>ferret\{{l/ver/class|layout}}\caNavElement</code>}} {| style="border: solid 1px grey; background: #eef;" |- | {{l/ver/class|cElement...") |
No edit summary |
||
Line 5: | Line 5: | ||
|} | |} | ||
* '''Source''': {{l/ferreteria/code|layout/nav/NavElem.php}} | * '''Source''': {{l/ferreteria/code|layout/nav/NavElem.php}} | ||
==Methods== | |||
===rendering=== | |||
* <syntaxhighlight lang=php inline>public function OnRender(cEventNodeRender $oe) : void { $oe->Append($this->RenderOutput()); }</syntaxhighlight> | |||
* <code>GetShouldDisplay()</code> returns <code>GetVisible()</code>. | |||
* <code>GetVisible()</code> ''probably'' comes from {{l/ver/class|cElement}} (to be checked). | |||
* <code>RenderOutput()</code>: | |||
** if <code>GetShouldDisplay()</code>, then: | |||
*** <code>RenderDisplay()</code> | |||
*** else returns an empty string. | |||
* <code>RenderDisplay()</code> returns <code>RenderValue()</code> wrapped in a {{xml/tag|li}} tag. | |||
* <code>RenderValue()</code> comes from {{l/ver/class|cElement}} | |||
* <code>RenderBranch()</code> comes from {{l/ver/class|cElement}} | |||
* <code>RenderTwigs()</code> comes from {{l/ver/class|cElement}} |
Revision as of 15:58, 12 July 2022
cElement → caNavElement → caLinkElement |
- Source: layout/nav/NavElem.php
Methods
rendering
public function OnRender(cEventNodeRender $oe) : void { $oe->Append($this->RenderOutput()); }
GetShouldDisplay()
returnsGetVisible()
.GetVisible()
probably comes from cElement (to be checked).RenderOutput()
:- if
GetShouldDisplay()
, then:RenderDisplay()
- else returns an empty string.
- if
RenderDisplay()
returnsRenderValue()
wrapped in a <li> tag.RenderValue()
comes from cElementRenderBranch()
comes from cElementRenderTwigs()
comes from cElement