BxDolPreloaderQuery.php 688 B

12345678910111213141516171819202122232425262728293031
  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 BxDolPreloader
  11. */
  12. class BxDolPreloaderQuery extends BxDolDb
  13. {
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function &getEntries()
  19. {
  20. $sKey = 'bx_dol_cache_memory_preloader_entries';
  21. if(!isset($GLOBALS[$sKey]))
  22. $GLOBALS[$sKey] = $this->fromCache('sys_preloader_entries', 'getAll', "SELECT * FROM `sys_preloader` WHERE `active`='1' ORDER BY `type`, `order`");
  23. return $GLOBALS[$sKey];
  24. }
  25. }
  26. /** @} */