TYPO3 CMS  TYPO3_6-2
DateTimeValidator.php
Go to the documentation of this file.
1 <?php
3 
23 
31  public function isValid($value) {
32  $this->errors = array();
33  if ($value instanceof \DateTime) {
34  return;
35  }
36  $this->addError(
37  $this->translateErrorMessage(
38  'validator.datetime.notvalid',
39  'extbase',
40  array(
41  gettype($value)
42  )
43  ), 1238087674, array(gettype($value)));
44  }
45 }
addError($message, $code, array $arguments=array(), $title='')
translateErrorMessage($translateKey, $extensionName, $arguments=array())