config.php 1.5 KB

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