Closed tanakahisateru closed 13 years ago
Validator should work as converter. Trim, type cast, encoding convert or such as...
Proposed semantics:
$v = new Pinoco_Varidator($input); $v->check('username')->filter('trim')->is('not-empty')->is('alpha-numeric')->filter('unicode'); $validInput = $v->collect();
Fixed.
$validInput = $v->values; //like as errors
Validator should work as converter. Trim, type cast, encoding convert or such as...
Proposed semantics: