BxQuoteOfDayConfig.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 QuoteOfTheDay Quote of the Day
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolModuleConfig');
  12. class BxQuoteOfDayConfig extends BxDolModuleConfig
  13. {
  14. public $CNF;
  15. protected $_aGridObjects;
  16. public function __construct($aModule)
  17. {
  18. parent::__construct($aModule);
  19. $this->CNF = array (
  20. 'OBJECT_GRID' => 'bx_quoteofday_internal',
  21. 'CACHEKEY' => 'bx_quoteofday',
  22. // database tables
  23. 'TABLE_ENTRIES' => $aModule['db_prefix'] . 'internal',
  24. // database fields
  25. 'FIELD_ID' => 'id',
  26. 'FIELD_AUTHOR' => 'author',
  27. 'FIELD_ADDED' => 'added',
  28. 'FIELD_TEXT' => 'text',
  29. 'FIELD_STATUS' => 'status'
  30. );
  31. $this->_aGridObjects = array(
  32. 'common' => $this->CNF['OBJECT_GRID'],
  33. );
  34. }
  35. }
  36. /** @} */