TYPO3 CMS  TYPO3_6-2
EmailValidator.php
Go to the documentation of this file.
1 <?php
3 
23 
29  const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_email';
30 
37  public function isValid() {
38  if ($this->requestHandler->has($this->fieldName)) {
39  $value = $this->requestHandler->getByMethod($this->fieldName);
40  if (!\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($value)) {
41  return FALSE;
42  }
43  }
44  return TRUE;
45  }
46 
47 }