config.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.plugin.ticket
  5. */
  6. /* Tables names constants */
  7. define('PLUGIN_NAME', 'ticket');
  8. define('TABLE_TICKET_ASSIGNED_LOG', 'plugin_ticket_assigned_log');
  9. define('TABLE_TICKET_CATEGORY', 'plugin_ticket_category');
  10. define('TABLE_TICKET_MESSAGE', 'plugin_ticket_message');
  11. define('TABLE_TICKET_PRIORITY', 'plugin_ticket_priority');
  12. define('TABLE_TICKET_PROJECT', 'plugin_ticket_project');
  13. define('TABLE_TICKET_STATUS', 'plugin_ticket_status');
  14. define('TABLE_TICKET_TICKET', 'plugin_ticket_ticket');
  15. define('TABLE_TICKET_MESSAGE_ATTACHMENTS', 'plugin_ticket_message_attachments');
  16. /* Ticket status constants */
  17. define('NEWTCK', 'NAT'); // New ticket unassigned responsible
  18. define('PENDING', 'PND'); // User waiting answer
  19. define('UNCONFIRMED', 'XCF'); // Waiting for user response
  20. define('CLOSE', 'CLS'); // Close ticket
  21. define('REENVIADO', 'REE'); // @todo delete option. This is a location of USIL
  22. /* Ticket priority constants */
  23. define('NORMAL', 'NRM');
  24. define('HIGH', 'HGH');
  25. define('LOW', 'LOW');
  26. /* Ticket source constants */
  27. define('SRC_EMAIL', 'MAI');
  28. define('SRC_PHONE', 'TEL');
  29. define('SRC_PRESC', 'PRE');
  30. define('SRC_PLATFORM', 'PLA');
  31. /* Ticket category constants */
  32. define('CAT_DOCU', 'DOC');
  33. define('CAT_FORO', 'FOR');
  34. define('CAT_ANNU', 'ANN');
  35. require_once __DIR__ . '/../../main/inc/global.inc.php';
  36. require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php';
  37. require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php';