BxDolCronUpgradeModulesCheck.php 565 B

12345678910111213141516171819202122232425
  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. class BxDolCronUpgradeModulesCheck extends BxDolCron
  10. {
  11. public function processing()
  12. {
  13. if('on' != getParam('sys_autoupdate'))
  14. return;
  15. BxDolStudioInstallerUtils::getInstance()->performModulesUpgrade(array(
  16. 'directly' => true,
  17. 'transient' => true,
  18. 'autoupdate' => true
  19. ));
  20. }
  21. }
  22. /** @} */