previousClass Summary HTML_QuickForm_advcheckbox (Previous) (Next) HTML_QuickForm_advcheckbox::getOnclickJs()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

constructor HTML_QuickForm_advcheckbox()

constructor HTML_QuickForm_advcheckbox() – Constructeur de la classe

Synopsis

require_once 'HTML/QuickForm/advcheckbox.php';

void constructor HTML_QuickForm_advcheckbox::HTML_QuickForm_advcheckbox ( string $elementName = = null , string $elementLabel = = null , string $text = = null , mixed $attributes = = null , mixed $values = = null )

Description

This package is not documented yet.

Parameter

string $elementName

(optionnel) Nom de l'attribut du champs Input

string $elementLabel

(optionnel) Libellé du champs Input

string $text

(optionnel) Texte à mettre après la checkbox

mixed $attributes

(optionnel) Soit un attribut HTML typique, soit un tableau associatif

mixed $values

(optionnel) Valeurs à passer si la checkbox est cochée ou non

Throws

No exceptions thrown.

Note

Disponible depuis la version 1.0.

This function can not be called statically.

previousClass Summary HTML_QuickForm_advcheckbox (Previous) (Next) HTML_QuickForm_advcheckbox::getOnclickJs()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: pierre2543@hotmail.com
The $values parameter can take either an array or a scalar.

If you pass a scalar, that will be the value you receive in case the check box is checked.

If you pass an array, you should pass something like this:
array('unchecked_value','checked_value')