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

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

constructor HTML_QuickForm_advcheckbox()

constructor HTML_QuickForm_advcheckbox() – Class constructor

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

(optional)Input field name attribute

string $elementLabel

(optional)Input field label

string $text

(optional)Text to put after the checkbox

mixed $attributes

(optional)Either a typical HTML attribute string or an associative array

mixed $values

(optional)Values to pass if checked or not checked

Throws

throws no exceptions thrown

Note

since 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: Tue, 02 Jun 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')