N°2677 - Add style definition for enums (Default values)

This commit is contained in:
Eric
2021-01-05 09:21:47 +01:00
parent 9aa379981e
commit 2dea5447b4
22 changed files with 330 additions and 1164 deletions

View File

@@ -5182,9 +5182,9 @@ class AttributeEnum extends AttributeString
/**
* @param string|null $sValue
*
* @return \ormStyle
* @return \ormStyle|null
*/
protected function GetStyle(?string $sValue): ormStyle
protected function GetStyle(?string $sValue): ?ormStyle
{
if ($this->IsParam('styled_values')) {
$aStyles = $this->Get('styled_values');
@@ -5193,7 +5193,11 @@ class AttributeEnum extends AttributeString
}
}
return new ormStyle();
if ($this->IsParam('default_style')) {
return $this->Get('default_style');
}
return null;
}
protected function GetSQLCol($bFullSpec = false)