# contact-forms/1.9.2/PFBC/Validation.php

Contact Forms by Cimatti, version 1.9.2. 22 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/1.9.2/code/PFBC/Validation.php
- Raw: https://pluginprobe.com/plugins/contact-forms/1.9.2/raw/PFBC/Validation.php
- Modified: 2023-03-14T12:04:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/1.9.2/code/PFBC/Validation.php#L10-L20`.

```php
<?php
abstract class Validation extends Base {
	protected $message = "%element% is invalid.";

	public function __construct($message = "") {
		if(!empty($message))
			$this->message = $message;
	}

	public function getMessage() {
		return $this->message;
	}

	public function isNotApplicable($value) {
		if(is_null($value) || is_array($value) || $value === "")
			return true;
		return false;
	}

	public abstract function isValid($value);
}

```
