31,026
edits
No edit summary |
|||
| Line 86: | Line 86: | ||
</source> | </source> | ||
Here, $this contains the business class with all information to send to the trigger functions. Replace 'XXXXX_YYYYY' by an event code not already used. | Here, '''$this''' contains the business class with all information to send to the trigger functions. Replace 'XXXXX_YYYYY' by an event code not already used. | ||
Then you will be able to add inside the run_trigger method, a "if" to manage this code. The run_trigger method will contains a part of code like this : | Then you will be able to add inside the run_trigger method, a "if" to manage this code. The run_trigger method will contains a part of code like this : | ||