/** * * Creates and returns an array of QuickForm elements based on an * array of DB_Table column names. * * @access public * * @param array $columns A sequential array of column names to use in * the form; if null, uses all columns. * * @param string $array_name By default, the form will use the names * of the columns as the names of the form elements. If you pass * $array_name, the column names will become keys in an array named * for this parameter. * * @return array An array of HTML_QuickForm_Element objects. * * @see HTML_QuickForm * * @see DB_Table_QuickForm * */ function &getFormGroup($columns = null, $array_name = null) { include_once 'DB/Table/QuickForm.php'; $coldefs = $this->_getFormColDefs($columns); $group =& DB_Table_QuickForm::getGroup($coldefs, $array_name); return $group; }