[FLOW3-general] Feature in TagBuilder

Thomas Allmer at at delusionworld.com
Thu Oct 13 15:36:23 CEST 2011


On 13.10.2011 13:00, Adrian Föder wrote:
>[..]
> So if you
>
> ->addAttribute('class', 'btn')
>
> and there's already an attribute "class" present, and it's configured to
> hold collections, that value is appended to the existing value.
>
> same goes to ->removeAttribute; in this case there has some RegEx magic
> to be happen in the background.
>
>
> To avoid problems and make verbs less ambiguous, we could introduce
>
> ->setAttribute()
>
> , which definately overrides any present values.

sound pretty good...

and I would also sugguest a
->getAttribute($attributeName) and
->hasAttribute($attributeName)

see:
http://forge.typo3.org/issues/30555
-- 
+---------------------------------+-----------------------------------+
| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |
+---------------------------------+-----------------------------------+


More information about the FLOW3-general mailing list