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

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:
* '''File''': {{l/ferreteria/code|layout/page/html/tag/1.php}}
* '''File''': {{l/ferreteria/code|layout/page/html/tag/1.php}}
==Methods==
==Methods==
===rendering===
Adds nothing except to name two methods for rendering pieces of an HTML tag:
* <code>OnRender()</code> (new):
<syntaxhighlight lang=php>
** tells Event object not to render twigs (we're handling that internally, in this class)
abstract protected function GetTagName() : string;
** calls <code>RenderOutput()</code>
abstract protected function GetTagTail() : string; // attributes
* <code>RenderOutput()</code> comes from {{l/ver/class|cElement}}
</syntaxhighlight>
* <code>RenderValue()</code> comes from {{l/ver/class|cElement}}
I ''think'' this doesn't make sense; there should be at least one method which uses these, thus defining their meaning.
* <code>RenderBranch()</code> comes from {{l/ver/class|cElement}}
* <code>RenderTwigs()</code> comes from {{l/ver/class|cElement}}

Revision as of 17:10, 12 July 2022

Ferreteria class ferret\layout\html\caTag
cElement caTag

→ * \ tag \ caClosable
→ * \ tag \ caUnclosed

Methods

Adds nothing except to name two methods for rendering pieces of an HTML tag:

abstract protected function GetTagName() : string;
abstract protected function GetTagTail() : string; // attributes

I think this doesn't make sense; there should be at least one method which uses these, thus defining their meaning.