BxDolLiveUpdatesQuery.php 945 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 UnaCore UNA 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. $sKey = 'bx_dol_cache_memory_live_updates_systems';
  21. if(!isset($GLOBALS[$sKey]))
  22. $GLOBALS[$sKey] = BxDolDb::getInstance()->fromCache('sys_objects_live_updates', 'getAllWithKey', '
  23. SELECT
  24. `id` as `id`,
  25. `name` AS `name`,
  26. `frequency` AS `frequency`,
  27. `service_call` AS `service_call`,
  28. `active` AS `active`
  29. FROM `sys_objects_live_updates`', 'name');
  30. return $GLOBALS[$sKey];
  31. }
  32. }
  33. /** @} */