BxDolLiveUpdatesQuery.php 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup TridentCore Trident Core
  7. * @{
  8. */
  9. /**
  10. * @see BxDolLiveUpdates
  11. */
  12. class BxDolLiveUpdatesQuery extends BxDolDb
  13. {
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function getSystems()
  19. {
  20. if(!isset($GLOBALS['bx_dol_live_updates_systems']))
  21. $GLOBALS['bx_dol_live_updates_systems'] = BxDolDb::getInstance()->fromCache('sys_objects_live_updates', 'getAllWithKey', '
  22. SELECT
  23. `id` as `id`,
  24. `name` AS `name`,
  25. `frequency` AS `frequency`,
  26. `service_call` AS `service_call`,
  27. `active` AS `active`
  28. FROM `sys_objects_live_updates`', 'name');
  29. return $GLOBALS['bx_dol_live_updates_systems'];
  30. }
  31. }
  32. /** @} */