BxStrmCronRecordings.php 803 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 Stream Stream
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxStrmCronRecordings extends BxDolCron
  12. {
  13. protected $_sModule;
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. $this->_sModule = 'bx_stream';
  18. }
  19. function processing()
  20. {
  21. $oModule = BxDolModule::getInstance($this->_sModule);
  22. $a = $oModule->_oDb->getPendingRecordings();
  23. foreach($a as $r) {
  24. $aContentInfo = $oModule->_oDb->getContentInfoById($r['content_id']);
  25. $oModule->getStreamEngine()->processRecordings($r['id'], $aContentInfo, $oModule, $r['tries']);
  26. }
  27. }
  28. }
  29. /** @} */