Ready to upload to benroberts.net/ecs

tidied up unneeded files, played with css
added an empty projects page.
removed the cv page and instead hyperlinked directly to .pdf
This commit is contained in:
2008-04-21 01:27:18 +00:00
parent 8447c7a41a
commit 46cd0f0c98
12 changed files with 219 additions and 89 deletions

View File

@@ -0,0 +1,40 @@
<?php
/*
*
*
*/
class RangeValidator implements IValidator {
private $min;
private $max;
public function __construct($min, $max) {
}
public static function initialise() {
// Nothing to do
}
public static function shutdown() {
// Nothing to do
}
public function associate() {
// Nothing to do
}
public function disassociate() {
// Nothing to do
}
public function validate($input) {
if( $input < $min || $input > $max )
throw new ValidationException("Input is no in the range {$this->min}-{$this->max}");
}
};
?>