/** * Creates a new dropdown field. * * @param string $name The field name * @param string $title The field title * @param array $source An map of the dropdown items * @param string|array|null $value You can pass an array of values or a single value like a drop down to be selected * @param int $size Optional size of the select element */ public function __construct($name, $title = '', $source = array(), $value = null, $size = null) { if ($size) { $this->setSize($size); } parent::__construct($name, $title, $source, $value); }