This topic is locked

Event Parameters Build 265

6/14/2007 4:49:04 AM
PHPRunner General questions
D
daviesgh author

Hi,
In the new build 265, the event functions headers are now defined by PHPRunner. Previously in build 258, for certain events I was passing extra parameters e.g. function AfterSuccessfulLogin($data), function BeforeChangePassword($oldpassword, $newpass, $values), function AfterChangePassword($row). Can I change PHPRunner to pass these parameters, or do I need to declare the parameters as global variables?
I have also been adding in code into Events, typically after (and outside) function ListOnLoad() that will execute at the start of every page that includes the event file. Typically I have been adding extra criteria to the SQL Statement. This is now more difficult because the close brackett for event functions is now defined by PHPRunner, and it is not possible to type code in after the close brackett.
Regards,
Gordon

J
Jane 6/14/2007

Gordon,
you can pass parameters as global variables.
Unfortunately you can't add code outside events in the PHPRunner. We plan to add new events for that in one of the next PHPRunner updates.

Now you can add your code in the ..._events.php files manually.