[TYPO3-dev] Database/Table Updates from frontend extension with versioning
Artis Lismanis
artisl at REMOVEMElismanis.co.uk
Tue Oct 14 21:30:06 CEST 2008
Hi Alex
Have a look in the API at the methods like
DBgetInsert()
DBgetUpdate()
I believe these are part of cObj and take care of inserting/updating
special fields in the tables. Not sure whether these do anything about
versioning, but I suppose you could extend the existing code as required.
Dmitry Dulepov wrote:
> Hi!
>
> Alex Masidlover wrote:
>> On the previous attempt I gave up and use exec_XXXquery, but it seems
>> to me that there should be some sort of wrapper around them that
>> handles page id, user id, creation/modification dates and versioning -
>> versioning particularly is important this time (I have ticked 'enable
>> versioning' in the kickstarter).
>
> $this->cObj->enableFields($tableName) will care about dates and user
> groups. pid usually comes from your plugin's configuration, so you have
> to do it yourself. For versioning you have to study how it works and do
> it yourself :(
>
>> Any thoughts or guidance would be most appreciated, failing that I'll
>> post my method if I end up writing one in case anyone else needs it.
>
> You an make a patch and propose it in the core list (make sure you see
> how it is done there).
>
More information about the TYPO3-dev
mailing list