[TYPO3-dev] A way to detect if table has a certain field

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu Sep 27 16:11:50 CEST 2007


Tapio Markula schrieb:
> Hi
> 
> Is there any core function to detect if the table has certain field.
> I would need to know if table has fieds 'pid' and 'deleted'

IMHO every TCA table has to have a pid and you can have a look at the 
enableFields section of the TCA entry for a table to get this info. See 
also t3lib_BEfunc::deleteClause().

Masi




More information about the TYPO3-dev mailing list