1: <?php
2: /**
3: * Report using tickets
4: *
5: * @author Duck <duck@obala.net>
6: * @package Ansel
7: */
8: class Ansel_Report_tickets extends Ansel_Report {
9:
10: /**
11: * Report
12: */
13: function report($message)
14: {
15: $info = array_merge($GLOBALS['conf']['report_content']['ticket_params'],
16: array('summary' => $this->getTitle(),
17: 'comment' => $message,
18: 'user_email' => $this->getUserEmail()));
19:
20: return $GLOBALS['registry']->call('tickets/addTicket', array($info));
21: }
22:
23: }
24: