[Typo3-dev] tstamp

Dmitry Dulepov typo3 at fm-world.ru
Fri Nov 25 21:58:01 CET 2005


Hi!

Martin Kutschker wrote:
> There is no equivalent for enableFields(), which returns the necessary
> WHERE-clause part for access control (in FE), that returns the necessary
> SET parts for an UPDATE statement. Note that all (?) TYPO3 functions for
> UPDATE take arrays as arguments, so such function should rather return
> an array than a "field1=foo,field2=bar" string.

Take a look to class.tslib_content.php and its DBGetUpdate() function.
It is available from plugins as $this->cObj->DBgetInsert(). It updates
tstamp if it is defined in $TCA.

Dmitry.




More information about the TYPO3-dev mailing list