[TYPO3-core] RFC #13467: add getField() function to database API

Martin Kutschker masi-no at spam-typo3.org
Mon Feb 8 21:23:55 CET 2010


Felix Oertel schrieb:
> Hi guys,
> 
> this is a SVN patch request.
> 
> Type: Feature
> 
> Bugtracker references: http://bugs.typo3.org/view.php?id=13467
> 
> Branches: Trunk
> 
> Problem:
> Often some wants to get a single-value, like a name or a label or
> something. We have to getRows() and then care for the resolvement ourself.
> 
> I'd like to get a function getField() which returns the value of the
> given field as a string.

Without looking at the actual code. Yes, this is useful, but it can be taken a step further if the
function would retrieve a whole column (ie a list of field values).

If you really need only one you can get it easily with list($column) or $colum[0].

Masi


More information about the TYPO3-team-core mailing list