| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaStudio UNA Studio
- * @{
- */
- class BxDolStudioStoreQuery extends BxDolStudioModulesQuery
- {
- function __construct()
- {
- parent::__construct();
- }
- public function isQueued($sAction, $sName)
- {
- $sJobName = '';
- switch($sAction) {
- case 'download':
- $sJobName = BxDolStudioInstallerUtils::getNameDownloadFile($sName);
- break;
- case 'action':
- $sJobName = BxDolStudioInstallerUtils::getNamePerformAction($sName);
- break;
- }
- $sSql = $this->prepare("SELECT `id` FROM `sys_cron_jobs` WHERE `name`=? LIMIT 1", $sJobName);
- return (int)$this->getOne($sSql) > 0;
- }
- }
- /** @} */
|