public fieldValid ( string $field ) : boolean | ||
$field | string | The name of the field to check for validity. |
리턴 | boolean | Returns true if the field has no errors, false otherwise. |
public function fieldValid($field)
{
$result = !isset($this->errors[$field]) || count($this->errors[$field]) === 0;
return $result;
}