protected function getControlValue($container, $column, $record)
{
switch (strtolower($column->getDbType())) {
case 'boolean':
return $container->findControl(self::DEFAULT_ID)->getChecked();
case 'datetime':
case 'smalldatetime':
return $this->getDateTimeValue($container, $column, $record);
default:
$value = $this->getDefaultControlValue($container, $column, $record);
if (trim($value) === '' && $column->getAllowNull()) {
return null;
} else {
return $value;
}
}
}