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

Søren Malling soren.malling at gmail.com
Thu Jan 24 13:01:50 CET 2013


Hi Sergio,

Did you try do dump the arguments that you get with the hook to see if the
delete action is even going through that hook?

Maybe try a hook a little earlier?


Søren Malling

Twitter: twitter.com/sorenmalling


On Thu, Jan 24, 2013 at 1:28 PM, Sergio <naguib.mahfuz at gmail.com> wrote:

>
> Hi Soren,
>
> 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" :(
>
> It seems like the change to the fieldss on the table are executed after
> finishing the function, not before. Could it be? Should I use other
> extension?
>
> Thanks,
> Sergio
>
>
>
> On 24/01/13 07:06, Søren Malling wrote:
>
>> Hi Sergio,
>>
>> Have a look at the hooks in the tcemain class named processCmdMap - i
>> think
>> that will help you
>>
>> Cheers
>>
>>
>> Søren Malling
>>
>> Twitter: twitter.com/sorenmalling
>>
>>
>> On Tue, Jan 22, 2013 at 4:21 PM, Sergio <naguib.mahfuz at gmail.com> wrote:
>>
>>  Hi,
>>>
>>> I would like to call a certain static "utility" from a class every time a
>>> model row from a table is saved in the backend. I've built the TCA and
>>> the
>>> model is correct, but I don't know how to do this.
>>>
>>> Any hints?
>>>
>>> Thanks in advance,
>>> Sergio
>>> ______________________________**_________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.typo3.org
>>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>>>
>>>  ______________________________**_________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>>
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list