Actions
Feature #20403
closedAdd TYPO3_DB->exec_SELECTgetField() function
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-05-08
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
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.
See Patch attached.
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.
(issue imported from #M11050)
Files
Actions