6
Yep...
There's already Required / Length / Regexp, and you can make your own validators.
In fact, I could say our framework will be some kind of a mix between the 2.0 classes and PEAR::QuickForm (at least feature-wise, I recoded everything as I think both overuse get/set methods, which I dont like considering we're using PHP).
- You'll be able to modify ALL the elements attributes
- There's the validators stuff implemented
- I'm thinking about adding some of the QF custom elements, although this hasn't been done yet (@ least the "Advanced checkbox", and maybe others, like the "autocomplete" input control)
- You'll be able to
attach an object to a form (well, the reality is going to be a bit longer than the following sample, but I think you'll get the point)
$form->attachObject( &$source );
$form->loadValues( $_REQUEST );
if ( $form->validate(true) ) {
$handler->update( $source );
}
skalpa.>