BxTimelineCronClean.php 730 B

123456789101112131415161718192021222324252627282930313233343536
  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 Timeline Timeline
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxTimelineCronClean extends BxDolCron
  12. {
  13. protected $_sModule;
  14. protected $_oModule;
  15. protected $_iLimitRead;
  16. public function __construct()
  17. {
  18. $this->_sModule = 'bx_timeline';
  19. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  20. parent::__construct();
  21. $this->_iLimitRead = 1000;
  22. }
  23. public function processing()
  24. {
  25. if($this->_iLimitRead > 0)
  26. $this->_oModule->_oDb->cleanRead($this->_iLimitRead);
  27. }
  28. }
  29. /** @} */