config.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Config the plugin
  5. * @author Daniel Alejandro Barreto Alva <daniel.barreto@beeznest.com>
  6. * @package chamilo.plugin.advanced_subscription
  7. */
  8. define('TABLE_ADVANCED_SUBSCRIPTION_QUEUE', 'plugin_advanced_subscription_queue');
  9. define('ADVANCED_SUBSCRIPTION_ACTION_STUDENT_REQUEST', 0);
  10. define('ADVANCED_SUBSCRIPTION_ACTION_SUPERIOR_APPROVE', 1);
  11. define('ADVANCED_SUBSCRIPTION_ACTION_SUPERIOR_DISAPPROVE', 2);
  12. define('ADVANCED_SUBSCRIPTION_ACTION_SUPERIOR_SELECT', 3);
  13. define('ADVANCED_SUBSCRIPTION_ACTION_ADMIN_APPROVE', 4);
  14. define('ADVANCED_SUBSCRIPTION_ACTION_ADMIN_DISAPPROVE', 5);
  15. define('ADVANCED_SUBSCRIPTION_ACTION_STUDENT_REQUEST_NO_BOSS', 6);
  16. define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_STUDENT', 7);
  17. define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_SUPERIOR', 8);
  18. define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_SUPERIOR_MAX', 9);
  19. define('ADVANCED_SUBSCRIPTION_ACTION_REMINDER_ADMIN', 10);
  20. define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_NO_QUEUE', -1);
  21. define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_START', 0);
  22. define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_BOSS_DISAPPROVED', 1);
  23. define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_BOSS_APPROVED', 2);
  24. define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_ADMIN_DISAPPROVED', 3);
  25. define('ADVANCED_SUBSCRIPTION_QUEUE_STATUS_ADMIN_APPROVED', 10);
  26. define('ADVANCED_SUBSCRIPTION_TERMS_MODE_POPUP', 0);
  27. define('ADVANCED_SUBSCRIPTION_TERMS_MODE_REJECT', 1);
  28. define('ADVANCED_SUBSCRIPTION_TERMS_MODE_FINAL', 2);
  29. require_once __DIR__.'/../../main/inc/global.inc.php';