Jump to content

Put code at beginnen en end of each function for mesures?


konti

Recommended Posts

Hi, i allready made a class that starts a timer in the constructor en stops the timer and writes the information to the database. The calls look like:

 

$new_mesure_code = new classCodeMessure(__METHOD__);

 

code....

 

$new_mesure_code->stop_timer_and_write();

 

But now i have to put that code in each function. Whell that would be perfect. I'm make use of the Joomla 1.0.13 framework btw. So if i want to do them all, that would mean a rough 10000 functions.

 

Is there a smart way to load my code automaticly in each function, start en end? I'm not getting my hopes up, because it seems impossible. But on the other side, in programming.. nothing is impossible! :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.