BxStoriesAlertsResponse.php 926 B

1234567891011121314151617181920212223242526272829303132333435
  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 Stories Stories
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxStoriesAlertsResponse extends BxBaseModTextAlertsResponse
  12. {
  13. public function __construct()
  14. {
  15. $this->MODULE = 'bx_stories';
  16. parent::__construct();
  17. }
  18. public function response($oAlert)
  19. {
  20. if ('bx_stories_files' == $oAlert->sUnit && 'file_deleted' == $oAlert->sAction)
  21. BxDolService::call($this->MODULE, 'delete_file_associations', array($oAlert->iObject));
  22. parent::response($oAlert);
  23. }
  24. protected function _onVideoTranscoded($iGhostId, $bResult, $aParams = array())
  25. {
  26. return parent::_onVideoTranscoded($iGhostId, $bResult, array('storage' => $this->_oModule->_oConfig->CNF['OBJECT_STORAGE']));
  27. }
  28. }
  29. /** @} */