Class Form
Class représentant un formulaire.
$form = new Form_Form('monForm'); $form->setPostedValue($_POST); $form->action('form.php') ->setAttributes('onsubmit',''); $form->add('Text','nom') ->label('test') ->value('Mon nom') ->addClass('cssclass') ->minLength(3); $form->add('Submit','envoi') ->id('envoiBtn') ->value('Envoyer'); if($form->isValid($_POST)) { echo 'OK'; } else echo $form;
Namespace: Pry\Form
Package: Form
Category: Pry
Author: Olivier ROGER <oroger.fr>
Version: 1.1.0
Located at Form/Form.class.php
Package: Form
Category: Pry
Author: Olivier ROGER <oroger.fr>
Version: 1.1.0
Located at Form/Form.class.php
public
|
|
public
boolean
|
|
public
Form_Input
|
|
public
Form_Form
|
|
public
Form_Form
|
|
public
Form_Form
|
|
public
string
|
|
public
Form_Form
|
|
public
Form_Form
|
|
public
string
|
protected
array
|
$attrs |
|
#
Liste des attributs du formulaire |
protected
string
|
$uniqid |
|
#
identifiant du formulaire |
protected static
array
|
$instances | array() |
#
Instance de formulaire |
public
array
|
$listTooltips |
|
#
Liste des infos à afficher |
public
mixed
|
$javascript |
|