konti Posted October 18, 2008 Share Posted October 18, 2008 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! Link to comment https://forums.phpfreaks.com/topic/129004-put-code-at-beginnen-en-end-of-each-function-for-mesures/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.