Ferreteria/v0.5/layout/event/renderoutput: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | layout‎ | event
Jump to navigation Jump to search
m (Woozle moved page Ferreteria/v0.5/layout/renderoutput to Ferreteria/v0.5/layout/event/renderoutput: most of this page is actually about the event subsystem)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{fmt/title|'''[[../|layout]]''' system: <code>RenderOutput()</code> method}}
{{fmt/title|'''{{l/ver|layout}}\{{l/ver|layout/event|event}}''' subsystem: <code>RenderOutput()</code> method}}
{| style="border: solid 1px grey; background: #eef;"
|-
|
'''{{l/ver/class|cElement}}'''
|
&rarr; '''{{l/ver/class|caNavElement}}'''
&rarr; ''{{l/ver/class|caLinkElement}}''
&rarr; ''\[[../|ferret]]\{{l/ver/class|cMenuLink}}''
&rarr; ''\[[../|ferret]]\{{l/ver/class|cArrayLink}}''
&rarr; ''\[[../|ferret]]\{{l/ver/class|caDynamicLink}}''
&rarr; \[[../|ferret]]\'''{{l/ver/class|cDropinLink}}'''
<br>
&rarr; ''.\{{l/ver/class|layout/html|html}}\{{l/ver/class|caContentHeader}}''
&rarr; '''.\{{l/ver/class|layout/html|html}}\{{l/ver/class|cLoginContentHeader}}'''
{| style="border: solid 1px grey; background: #ddf;"
|-
|
&rarr; ''.\{{l/ver/class|layout/html|html}}\{{l/ver/class|caTag}}''
|
&rarr; '''.\{{l/ver/class|layout/html|html}}\{{l/ver/class|layout/html/tag|tag}}\{{l/ver/class|caUnclosed}}'''<br>
&rarr; '''.\{{l/ver/class|layout/html|html}}\{{l/ver/class|layout/html/tag|tag}}\{{l/ver/class|caClosable}}'''
|}
|}
==About==
==About==
This method is at the top of the rendering hierarchy for any given element object. Its job is to assemble all the bits of output for which it might be responsible, including any twigs.
This method is at the top of the rendering hierarchy for any given element object. Its job is to ultimately to assemble all the bits of output for which it might be responsible, but this is generally done by invoking {{l/ver/meth|layout/event|RenderValue}} and adding any necessary formatting or conditions.
==Specs==
==Specs==
* Form: <syntaxhighlight lang=php inline>public function RenderOutput() : string</syntaxhighlight>
* Form: <syntaxhighlight lang=php inline>public function RenderOutput() : string</syntaxhighlight>
* Classes:
* Classes:
** {{l/ver/class|cElement}}: returns {{l/ver/meth|layout|RenderValue}}
** {{l/ver/class|cElement}}: returns {{l/ver/meth|layout/event|RenderValue}}
** {{l/ver/class|caNavElement}}: if {{l/ver/meth|layout|GetShouldDisplay}}, then returns {{l/ver/meth|layout|RenderDisplay}}.
** {{l/ver/class|caNavElement}}: if {{l/ver/meth|layout/event|GetShouldDisplay}}, then returns {{l/ver/meth|layout/event|RenderDisplay}}.
** \[[../|ferret]]\'''{{l/ver/class|cDropinLink}}
** html\{{l/ver/class|cLoginContentHeader}}
** html\{{l/ver/class|cLoginContentHeader}}
** html\tag\{{l/ver/class|caClosable}}: assembles output from {{l/ver/meth|layout|RenderValue}}, {{l/ver/meth|layout/html/tag|GetTagOpen}}, and {{l/ver/meth|layout/html/tag|GetTagName}}
** html\tag\{{l/ver/class|caClosable}}: assembles output from {{l/ver/meth|layout|RenderValue}}, {{l/ver/meth|layout/html/tag|GetTagOpen}}, and {{l/ver/meth|layout/html/tag|GetTagName}}
** html\tag\{{l/ver/class|caUnclosed}}: returns {{l/ver/meth|layout/html/tag|GetTagOpen}}
** html\tag\{{l/ver/class|caUnclosed}}: returns {{l/ver/meth|layout/html/tag|GetTagOpen}}

Latest revision as of 22:49, 21 July 2022

layout\event subsystem: RenderOutput() method

cElement

caNavElementcaLinkElement\ferret\cMenuLink\ferret\cArrayLink\ferret\caDynamicLink → \ferret\cDropinLink
.\html\caContentHeader.\html\cLoginContentHeader

.\html\caTag

.\html\tag\caUnclosed
.\html\tag\caClosable

About

This method is at the top of the rendering hierarchy for any given element object. Its job is to ultimately to assemble all the bits of output for which it might be responsible, but this is generally done by invoking RenderValue() and adding any necessary formatting or conditions.

Specs