BxRibbonsFormsEntryHelper.php 956 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 Ribbons Ribbons
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Entry forms helper functions
  13. */
  14. class BxRibbonsFormsEntryHelper extends BxBaseModTextFormsEntryHelper
  15. {
  16. public function __construct($oModule)
  17. {
  18. parent::__construct($oModule);
  19. }
  20. public function onDataEditAfter($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile, $oForm)
  21. {
  22. $CNF = &$this->_oModule->_oConfig->CNF;
  23. $this->_redirectAndExit($CNF['URL_MANAGE']);
  24. return parent::onDataEditAfter($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile, $oForm);
  25. }
  26. public function onDataAddAfter($iAccountId, $iContentId)
  27. {
  28. $CNF = &$this->_oModule->_oConfig->CNF;
  29. $this->_redirectAndExit($CNF['URL_MANAGE']);
  30. }
  31. }
  32. /** @} */