1
0

BxEventsFormsEntryHelper.php 731 B

1234567891011121314151617181920212223242526272829303132
  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 Events Events
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Event forms functions
  13. */
  14. class BxEventsFormsEntryHelper extends BxBaseModGroupsFormsEntryHelper
  15. {
  16. public function __construct($oModule)
  17. {
  18. parent::__construct($oModule);
  19. }
  20. public function onDataDeleteAfter($iContentId, $aContentInfo, $oProfile)
  21. {
  22. $CNF = &$this->_oModule->_oConfig->CNF;
  23. $this->_oModule->_oDb->deleteSessions(['event_id' => $iContentId]);
  24. return parent::onDataDeleteAfter($iContentId, $aContentInfo, $oProfile);
  25. }
  26. }
  27. /** @} */