[TYPO3-dev] Is there a hook for FE DB updates

Bill Stoltz bstoltz81 at comcast.net
Tue Oct 2 02:03:36 CEST 2007


Martin Kutschker wrote:
> ries van Twisk schrieb:
>>
>> On Oct 1, 2007, at 2:42 AM, Martin Kutschker wrote:
>>
>>> Bill Stoltz schrieb:
>>>> Since I want this to work for every extension, now and in the 
>>>> future, I
>>>> wonder could I create an XCLASS for t3lib_DB and the create a wrapper
>>>> for exec_UPDATEquery, exec_DELETEquery and exec_INSERTquery 
>>>> functions to
>>>> see if I want to track these updates?
>>>
>>> No, as there is also TYPO3_DB->sql_query and of course there is still
>>> mysql_query around.
>>>
>>> Masi
>>>
>>
>> Can you go around it and make a Stored Procedure?
>
> What? I mean the PHP function mysql_query() which some old extensions 
> still use.
>
> But as for TYPO3_DB->sql_query: you can XLASS this function as well 
> and parse the query and find out which tables are affected.
>
> Masi
So, you are saying that an XCLASS "would work" for exec_UPDATEquery, but 
not for those using mysql_query. Correct?

maybe this is encourage some folks to update their extensions. HA HA.

Bill




More information about the TYPO3-dev mailing list