BxDolStudioStoreQuery.php 736 B

1234567891011121314151617181920212223242526272829
  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 DolphinStudio Dolphin Studio
  7. * @{
  8. */
  9. bx_import('BxDolStudioModulesQuery');
  10. class BxDolStudioStoreQuery extends BxDolStudioModulesQuery
  11. {
  12. function __construct()
  13. {
  14. parent::__construct();
  15. }
  16. public function isDownloadQueued($sName)
  17. {
  18. bx_import('BxDolStudioInstallerUtils');
  19. $sJobName = BxDolStudioInstallerUtils::getNameDownloadFile($sName);
  20. $sSql = $this->prepare("SELECT `id` FROM `sys_cron_jobs` WHERE name=? LIMIT 1", $sJobName);
  21. return (int)$this->getOne($sSql) > 0;
  22. }
  23. }
  24. /** @} */