<?php

class NotNullValidator extends Validator {



	public function valid() {
		$valid = parent::valid() && !empty($this->value);
		if (!$valid) {
			$this->view->errorMessage(__('This field must not be blank'));
		}
		return $valid;
	}



} // NotNullValidator

?>