BxBaseModNotificationsResponse.php 730 B

1234567891011121314151617181920212223242526272829
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup BaseNotifications Base classes for Notifications like modules
  7. * @ingroup TridentModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolAlertsResponse');
  12. class BxBaseModNotificationsResponse extends BxDolAlertsResponse
  13. {
  14. protected $_oModule;
  15. function __construct()
  16. {
  17. parent::__construct();
  18. }
  19. protected function _getPrivacyView($aExtras)
  20. {
  21. return is_array($aExtras) && isset($aExtras['privacy_view']) ? (int)$aExtras['privacy_view'] : $this->_oModule->_oConfig->getPrivacyViewDefault();
  22. }
  23. }
  24. /** @} */