[TYPO3-english] Call an utility on saving a model table

Sergio naguib.mahfuz at gmail.com
Thu Jan 24 15:35:57 CET 2013


On 24/01/13 12:45, Jigal van Hemert wrote:
> Hi,
>
> On 24-1-2013 13:28, Sergio wrote:
>> your tip was really useful. I implemented
>> "processDatamap_afterDatabaseOperations" hook in my extension, and it
>> really works for "new" and "update" operations, but it doesn't work
>> properly on "deleting" :(
>
> Deleting doesn't involve a datamap operation, but a cmdmap operation. 
> Operations like move, copy, localize, inlineLocalizeSynchronize, 
> delete, undelete are done inside process_cmdmap(). You could use a 
> hook such as processCmdmap_postProcess to do something when such an 
> operation is executed.
>

Thanks, Jigal.

The problem is I would need inside "processCmdmap_postProcess" the whole 
object to be deleted BEFORE it's deleted, to make some calculation. Is 
that possible? I can't see it on "$pObj" parameter.

Thanks in advance,
Sergio


More information about the TYPO3-english mailing list