BxGitHubConfig.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup GitHub GitHub
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxGitHubConfig extends BxBaseModGeneralConfig
  12. {
  13. protected $_oDb;
  14. public function __construct($aModule)
  15. {
  16. parent::__construct($aModule);
  17. $this->CNF = array (
  18. // database tables
  19. 'TABLE_SETTINGS' => $aModule['db_prefix'] . 'settings',
  20. // database fields
  21. 'FIELD_' => '',
  22. // some params
  23. 'PARAM_' => 'bx_github_',
  24. // objects
  25. 'OBJECT_FORM_SETTINGS' => 'bx_github_form_settings',
  26. 'OBJECT_FORM_SETTINGS_DISPLAY_EDIT' => 'bx_github_form_settings_edit',
  27. 'OBJECT_LOG_API' => 'bx_github_api'
  28. );
  29. }
  30. public function init(&$oDb)
  31. {
  32. $this->_oDb = &$oDb;
  33. //NOTE: Some settings can be inited here.
  34. }
  35. }
  36. /** @} */