Files
piratepoet/lib/Models/CustomValidator.php
Vlad 2856a08cdc - Made changes as per Marco's comments in #54
- Implemented database cleanup for tests. Closes #56
2015-08-12 15:36:56 +00:00

16 lines
308 B
PHP

<?php namespace MailPoet\Models;
class CustomValidator {
function __construct() {
$this->validator = new \Sudzy\Engine();
}
function init() {
$this->validator->addValidator('isString', function ($val) {
return is_string($val);
});
return $this->validator;
}
}