tag. * @package forms * @subpackage fields-basic */ class ListboxField extends DropdownField { protected $source; protected $size; protected $multiple; /** * Creates a new dropdown field. * @param name The field name * @param title The field title * @param source An map of the dropdown items * @param value You can pass an array of values or a single value like a drop down to be selected * @param form The parent form */ function __construct($name, $title = "", $source = array(), $value = array(), $size = null, $multiple = null, $form = null) { if($size) $this->size = $size; if($multiple) $this->multiple = $multiple; parent::__construct($name, $title, $source, $value, $form); } /** * Returns a name\" id=\"$id\">$options"; } /** * Sets the number of rows high this field should be */ function setSize($i){ $this->size = $i; } /** * Sets this field to have a muliple select attribute */ function setMultiple($bool){ $this->multiple = $bool; } } ?>