[TYPO3-core] RFC #11050: Add TYPO3_DB->exec_SELECTgetField() function

Steffen Ritter info at rs-websystems.de
Mon Aug 24 14:16:02 CEST 2009


Stefan Geith schrieb:
> 
> 
> Steffen Ritter schrieb:
>> Stefan Geith schrieb:
>>> REMINDER
>>>
>>>
>>> really nobody, who thinks this is useful ?
>>>
>>> /Stefan
>>>
>>>
>>>
>>> Stefan Geith schrieb:
>>>> Hi,
>>>>
>>>> This is a SVN patch request.
>>>>
>>>> Type: Feature
>>>>
>>>> Branches: trunk
>>>>
>>>> BT reference: http://bugs.typo3.org/view.php?id=11050
>>>>
>>>>
>>>> Description:
>>>> We often need to read associative arrays from the database that 
>>>> contains only _one_ field from the table e.g. uid=>title oder even 
>>>> only a uid-list.
>>>>
>>>> This could be done with a new function exec_SELECTgetField() in 
>>>> TYPO3_DB.
>>>>
>>>>
>>>> Additional Information:
>>>> This is useful e.g. for:
>>>> - getting an array with Kategorie-Names for a given Category-UID
>>>> - or the other way round for getting UIDs for a given Category-Name
>>>> - getting an array with UIDs only, that can be processed further by 
>>>> e.g. implode() etc.
>>>> I need this very often ...
>>>>
>>>>
>>>> Note:
>>>> Patch attached.
>>>>
>> probably you should attach a new patch taking Masi's comment in count.
> 
> Which one do you mean ?
> I think I have the latest patches (in BT and here in the List)
> according to Masi's comments... where am I wrong ?
> 
> /Stefan
Ok sry, the "should be changed" was not about your patch :)
Steffen


More information about the TYPO3-team-core mailing list