BxInvFormCheckerHelper.php 569 B

123456789101112131415161718192021222324252627
  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 Invites Invites
  7. * @ingroup DolphinModules
  8. *
  9. * @{
  10. */
  11. bx_import('BxDolForm');
  12. class BxInvFormCheckerHelper extends BxDolFormCheckerHelper
  13. {
  14. static public function checkEmails($s)
  15. {
  16. $aEmails = preg_split("/[\s\n,;]+/", $s);
  17. foreach($aEmails as $sEmail)
  18. if(!self::checkEmail($sEmail))
  19. return false;
  20. return true;
  21. }
  22. }
  23. /** @} */