A new commit has been created:
Add support for closures / lambdas as per-field validation methods
Commit: 324ae60b390d91e85b0123b34da7253a18119b6a
Project: Pluf Framework
Created by: Thomas Keller
Created at: 2011-05-30 02:49:30
Content:
The syntax for closures is
$this->clean_foo = function($form) {
// process $form->cleaned_data['foo']
}
This eases the handling of dynamic form fields somewhat that all
share some basic validation code, but can occur multiple times.
--
Commit details: http://projects.ceondo.com/p/pluf/source/commit/324ae60b390d91e85b0123b34da7253a18119b6a/