[TYPO3-dev] Database/Table Updates from frontend extension with versioning

Alex Masidlover alex at axiomtech.co.uk
Tue Oct 14 11:40:46 CEST 2008


Hi,

I'm writing my second typo3 extension and again I seem to be stuck on  
the same issue. There seems to be a method pi_getRecord for retrieving  
data from the extension's table - however, I can't find an equivalent  
for writing to the table (total of half a day of searching Google now!)

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).

Is there not a method that would be something like pi_writeRecord or  
pi_setRecord (can't find one using google or browsing the class  
references) - that takes an array of values and optionally a record id  
and/or a delete flag, if a record id is given, it should update the  
existing record including saving the old version (if versioning is  
enabled). It's probably only going to take me an hour or two to write,  
but it makes me think that surely someone's already done it...


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.

Thanks in Advance,

Alex Masidlover

-- 
Open Source Specialist
Axiom Tech Limited
W: http://www.axiomtech.co.uk
T: 0845 1270316

Axiom Tech is a Limited Company registered in England and Wales at 92 Didsbury
Road, Stockport, SK4 2JL.  Axiom Tech's company number is 5684132, our VAT
registration number is 878 6568 46.
Unless agreed otherwise, all services and products supplied by Axiom Tech are
subject to our standard terms and conditions, available on request.




More information about the TYPO3-dev mailing list