BxDolStudioStoreQuery.php 871 B

1234567891011121314151617181920212223242526272829303132333435
  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 UnaStudio UNA Studio
  7. * @{
  8. */
  9. class BxDolStudioStoreQuery extends BxDolStudioModulesQuery
  10. {
  11. function __construct()
  12. {
  13. parent::__construct();
  14. }
  15. public function isQueued($sAction, $sName)
  16. {
  17. $sJobName = '';
  18. switch($sAction) {
  19. case 'download':
  20. $sJobName = BxDolStudioInstallerUtils::getNameDownloadFile($sName);
  21. break;
  22. case 'action':
  23. $sJobName = BxDolStudioInstallerUtils::getNamePerformAction($sName);
  24. break;
  25. }
  26. $sSql = $this->prepare("SELECT `id` FROM `sys_cron_jobs` WHERE `name`=? LIMIT 1", $sJobName);
  27. return (int)$this->getOne($sSql) > 0;
  28. }
  29. }
  30. /** @} */