Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function isRequiredExistingValue($value, array $values, $suppressException = true)
 {
     /* Clear the last error. */
     $this->lastError = null;
     /* If valid just return true. */
     if (Validator::isRequiredExistingValue($value, $values)) {
         return true;
     }
     /* Set the error message. */
     $this->lastError = sprintf('Expected array to contain value \'%s\'.', $value);
     return $this->validationFailed($suppressException);
 }