| 12345678910111213141516171819202122232425262728293031323334 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup Notifications Notifications
- * @ingroup UnaModules
- *
- * @{
- */
- class BxNtfsCronClean extends BxDolCron
- {
- protected $_sModule;
- protected $_oModule;
- public function __construct()
- {
- $this->_sModule = 'bx_notifications';
- $this->_oModule = BxDolModule::getInstance($this->_sModule);
- parent::__construct();
- }
- function processing()
- {
- $iClearIntervalInDays = (int)getParam('bx_notifications_clear_interval');
- if($iClearIntervalInDays > 0){
- $this->_oModule->_oDb->cleanEvents($iClearIntervalInDays);
- }
- }
- }
- /** @} */
|