public function get_values()
{
$values = array();
foreach ($this->controls as $control) {
if ($control instanceof FormContainer) {
$values = array_merge($values, $control->get_values());
} else {
$values[$control->name] = $control->value;
}
}
return $values;
}