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