config.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Reputation Reputation
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. $aConfig = [
  12. /**
  13. * Main Section.
  14. */
  15. 'type' => BX_DOL_MODULE_TYPE_MODULE,
  16. 'name' => 'bx_reputation',
  17. 'title' => 'Reputation',
  18. 'note' => 'Reputation, points, ranks',
  19. 'version' => '15.0.0',
  20. 'vendor' => 'UNA INC',
  21. 'help_url' => 'http://feed.una.io/?section={module_name}',
  22. 'compatible_with' => [
  23. '15.0.x'
  24. ],
  25. /**
  26. * 'home_dir' and 'home_uri' - should be unique. Don't use spaces in 'home_uri' and the other special chars.
  27. */
  28. 'home_dir' => 'boonex/reputation/',
  29. 'home_uri' => 'reputation',
  30. 'db_prefix' => 'bx_reputation_',
  31. 'class_prefix' => 'BxReputation',
  32. /**
  33. * Category for language keys.
  34. */
  35. 'language_category' => 'Reputation',
  36. /**
  37. * List of page triggers.
  38. */
  39. 'page_triggers' => [
  40. 'trigger_page_profile_view_entry'
  41. ],
  42. /**
  43. * Installation/Uninstallation Section.
  44. */
  45. 'install' => [
  46. 'execute_sql' => 1,
  47. 'update_languages' => 1,
  48. 'clear_db_cache' => 1,
  49. ],
  50. 'uninstall' => [
  51. 'execute_sql' => 1,
  52. 'update_languages' => 1,
  53. 'clear_db_cache' => 1,
  54. ],
  55. 'enable' => [
  56. 'execute_sql' => 1,
  57. 'update_relations_for_all' => 1,
  58. 'clear_db_cache' => 1,
  59. ],
  60. 'enable_success' => [
  61. 'process_page_triggers' => 1,
  62. 'clear_db_cache' => 1,
  63. ],
  64. 'disable' => [
  65. 'execute_sql' => 1,
  66. 'update_relations_for_all' => 1,
  67. 'clear_db_cache' => 1,
  68. ],
  69. /**
  70. * Dependencies Section
  71. */
  72. 'dependencies' => [],
  73. /**
  74. * Relations Section
  75. */
  76. 'relation_handlers' => [
  77. 'on_install' => '',
  78. 'on_uninstall' => 'delete_module_events',
  79. 'on_enable' => 'add_handlers',
  80. 'on_disable' => 'delete_handlers',
  81. ],
  82. 'relation_handlers_method' => 'get_reputation_data',
  83. ];
  84. /** @} */