Tutorial: Intercepting Ticket Events
The PhenotypeApplication class offers a series of inoperable methods to be implemented in your application. Some of them deal with ticket events:
- →onTicket_createTicket($tik_id,$usr_id_creator,$usr_id_owner)
- →onTicket_delegateTicket($tik_id,$usr_id_lastowner,$usr_id_newowner)
- →onTicket_acceptTicket($tik_id,$usr_id)
- →onTicket_progressTicket($tik_id,$usr_id,$minuten,$progress,$progress_last)
- →onTicket_moveTicket($tik_id,$sbj_id,$sbj_id_last)
- →onTicket_prioritizeTicket($tik_id,$tik_prio,$tik_prio_last)
- →onTicket_closeTicket($tik_id,$progress)
You may “catch these events” by creating your own PhenotypeApplication class and fill in in your desired action. For example you can implement
an email notification, whenever new tickets are created:
_application.inc.php:
class PhenotypeApplication extends PhenotypeApplicationStandard { public function onTicket_createTicket($tik_id,$usr_id_creator,$usr_id_owner) { global $mySUser; // ... your code here ... } }
You think Phenotype Wiki/Documentation could be better?
We too. Please contribute: Edit this page
Recent Blog Posts
- Finally Multibyte - Phenotype 3.0
- Phenotype 2.9 explained
- Integration of PHPIDS (PHP-Intrusion Detection System)
- New Release: Phenotype 2.8 Ready for Download
- Restart: New Phenotype Website Live
- Phenotype worth: 2 Million $
- New Feature: Automatic Image Version Creation
- Additional smartURL variable: smartPATH