BxDolLiveUpdatesQuery.php 1015 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 DolphinCore Dolphin Core
  7. * @{
  8. */
  9. bx_import('BxDolDb');
  10. /**
  11. * @see BxDolLiveUpdates
  12. */
  13. class BxDolLiveUpdatesQuery extends BxDolDb
  14. {
  15. public function __construct()
  16. {
  17. parent::__construct();
  18. }
  19. public function getSystems()
  20. {
  21. if(!isset($GLOBALS['bx_dol_live_updates_systems']))
  22. $GLOBALS['bx_dol_live_updates_systems'] = 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['bx_dol_live_updates_systems'];
  31. }
  32. }
  33. /** @} */