BxMsgModule.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 Messages Messages
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import ('BxBaseModTextModule');
  12. define('BX_MSG_FOLDER_INBOX', 1);
  13. define('BX_MSG_FOLDER_SENT', 2);
  14. define('BX_MSG_FOLDER_DRAFTS', 3);
  15. define('BX_MSG_FOLDER_SPAM', 4);
  16. define('BX_MSG_FOLDER_TRASH', 5);
  17. /**
  18. * Messages module
  19. */
  20. class BxMsgModule extends BxBaseModTextModule
  21. {
  22. function __construct(&$aModule)
  23. {
  24. parent::__construct($aModule);
  25. }
  26. public function actionAjaxGetRecipients ()
  27. {
  28. $sTerm = bx_get('term');
  29. $a = BxDolService::call('system', 'profiles_search', array($sTerm), 'TemplServiceProfiles');
  30. header('Content-Type:text/javascript');
  31. echo(json_encode($a));
  32. }
  33. /**
  34. * @return CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden. So make sure to make strict(===) checking.
  35. */
  36. public function checkAllowedSetThumb ()
  37. {
  38. return _t('_sys_txt_access_denied');
  39. }
  40. }
  41. /** @} */