[TYPO3-core] RFC: #16234: ExtDirect Dataprovider for user settings

Steffen Kamper info at sk-typo3.de
Wed Nov 3 16:16:37 CET 2010


Hi Steffen,

Steffen Gebert schrieb:
> 
> Setting an array as value is IMHO an important feature, is this not 
> possible with setSingleValue()? Reading the code of 
> setSettingsFromArray() I would say, it is.
> What's the intention of setSettingsFromArray?

both can handle arrays, but the first overwrites the key with given 
value (eg array), the second merge it into - therefore i used the Array 
in the function name. Open for suggestions ;)

> It could make people think setSingleValue can't handle arrays. Or does 
> it do, what SteffenR mentions in his second command: Set values 
> in.a.sub.key?

for many settings this would be useful, but i'm unsure with a good naming.
setValueFromDotNotation sounds strange, it would convert the dot 
notation to array internally.

> Also unsetting a value is not possible, isn't it? Would say this leads 
> to the same problem "how to specify a.sub.key"...
>

unsetting is the same as set($key, NULL)


> I've attached a patch, which modifies it according to my suggestions 
> (without testing for the moment, as I shouldn't do TYPO3 at the moment 
> *g*).
> 

i feel with you :)
I will come with the additions after finding a good naming.

vg Steffen


More information about the TYPO3-team-core mailing list