TYPO3 CMS  TYPO3_6-2
EmailAddressValidator.php
Go to the documentation of this file.
1 <?php
3 
23 
31  public function isValid($value) {
32  if (!is_string($value) || !$this->validEmail($value)) {
33  $this->addError(
34  $this->translateErrorMessage(
35  'validator.emailaddress.notvalid',
36  'extbase'
37  ), 1221559976);
38  }
39  }
40 
47  protected function validEmail($emailAddress) {
48  return \TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($emailAddress);
49  }
50 }
addError($message, $code, array $arguments=array(), $title='')
translateErrorMessage($translateKey, $extensionName, $arguments=array())