1
0

BxBaseModTextAlertsResponse.php 652 B

1234567891011121314151617181920212223
  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 BaseText Base classes for text modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxBaseModTextAlertsResponse extends BxBaseModGeneralAlertsResponse
  12. {
  13. public function response($oAlert)
  14. {
  15. parent::response($oAlert);
  16. if($oAlert->sUnit == 'profile' && $oAlert->sAction == 'delete' && !empty($oAlert->aExtras['delete_with_content']))
  17. return BxDolService::call($this->MODULE, 'delete_entities_by_author', array($oAlert->iObject));
  18. }
  19. }
  20. /** @} */