From 44b18060834b0afad7c875d32ea162c9f6e31621 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 25 Feb 2014 22:09:44 -0500 Subject: Add task limit for each column --- vendor/SimpleValidator/Validators/GreaterThan.php | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 vendor/SimpleValidator/Validators/GreaterThan.php (limited to 'vendor/SimpleValidator/Validators') diff --git a/vendor/SimpleValidator/Validators/GreaterThan.php b/vendor/SimpleValidator/Validators/GreaterThan.php new file mode 100644 index 00000000..e038cb61 --- /dev/null +++ b/vendor/SimpleValidator/Validators/GreaterThan.php @@ -0,0 +1,36 @@ +min = $min; + } + + + public function execute(array $data) + { + if (isset($data[$this->field]) && $data[$this->field] !== '') { + return $data[$this->field] > $this->min; + } + + return true; + } +} \ No newline at end of file -- cgit v1.2.3