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

Steffen Ritter info at rs-websystems.de
Mon Aug 24 13:45:33 CEST 2009


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.


More information about the TYPO3-team-core mailing list