TYPO3 CMS  TYPO3_6-2
TextValidator.php
Go to the documentation of this file.
1 <?php
3 
23 
37  public function isValid($value) {
38  if ($value !== filter_var($value, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES)) {
39  $this->addError(
40  $this->translateErrorMessage(
41  'validator.text.notvalid',
42  'extbase'
43  ), 1221565786);
44  }
45  }
46 }
addError($message, $code, array $arguments=array(), $title='')
translateErrorMessage($translateKey, $extensionName, $arguments=array())