Class

FormFieldCheckbox

Package: Builder\Form\field Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 24 Since: PHPBoost 3.0 - 2009 04 28 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: builder/form/field/FormFieldCheckbox.class.php

The class FormCheckBox represents a checkbox field in a form. It corresponds to a boolean.

AbstractFormField implements FormField
Extended by FormFieldCheckbox
Methods summary
public
# __construct( string $id, string $label, boolean $checked = self::UNCHECKED, array $field_options = array(), array $constraints = array() )

Constructs a FormFieldCheckbox.

public string
# display( )

Return the element

public boolean
# is_checked( )

Tells whether the checkbox is checked

public
# retrieve_value( )

Tries to retrieve the value in the HTTP request's parameters.

protected Template
Constants summary
boolean CHECKED
# true
boolean UNCHECKED
# false
Annonces