config.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_CATEGORY_REL_USER', 'plugin_ticket_category_rel_user');
  16. define('TABLE_TICKET_MESSAGE_ATTACHMENTS', 'plugin_ticket_message_attachments');
  17. /* Ticket status constants */
  18. define('NEWTCK', 'NAT'); // New ticket unassigned responsible
  19. define('PENDING', 'PND'); // User waiting answer
  20. define('UNCONFIRMED', 'XCF'); // Waiting for user response
  21. define('CLOSE', 'CLS'); // Close ticket
  22. define('REENVIADO', 'REE'); // @todo delete option. This is a location of USIL
  23. /* Ticket priority constants */
  24. define('NORMAL', 'NRM');
  25. define('HIGH', 'HGH');
  26. define('LOW', 'LOW');
  27. /* Ticket source constants */
  28. define('SRC_EMAIL', 'MAI');
  29. define('SRC_PHONE', 'TEL');
  30. define('SRC_PRESC', 'PRE');
  31. define('SRC_PLATFORM', 'PLA');
  32. /* Ticket category constants */
  33. define('CAT_DOCU', 'DOC');
  34. define('CAT_FORO', 'FOR');
  35. define('CAT_ANNU', 'ANN');
  36. require_once __DIR__ . '/../../main/inc/global.inc.php';
  37. require_once api_get_path(SYS_PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php';
  38. require_once api_get_path(SYS_PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php';