Class

AbstractFormFieldChoice

Abstract 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 2.0 - 2009 04 28 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: builder/form/field/AbstractFormFieldChoice.class.php

This class manage radio input fields.

AbstractFormField implements FormField
Extended by AbstractFormFieldChoice
Methods summary
public
# __construct( string $id, string $label, FormFieldEnumOption $value, array $options, array $field_options = array(), array $constraints = array() )

Constructs a FormFieldChoice.

protected FormFieldEnumOption[]
protected
# add_option( FormFieldEnumOption $option )

Adds an option for the field.

public
# set_options( array $options )

Sets the options of the field.

protected
public
# retrieve_value( )

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

protected
# get_option( $raw_option )
public
# get_option_id( $raw_option )
public
# set_value( string $value )

Sets the value