mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge 4a6a3d19af
into 165f72fd22
This commit is contained in:
commit
cdd5a46aeb
@ -65,7 +65,13 @@ class DBInt extends DBField
|
||||
{
|
||||
return sprintf('%d', $this->value);
|
||||
}
|
||||
|
||||
|
||||
public function SpelledOut()
|
||||
{
|
||||
$v = $this->prepValueForDB($this->value);
|
||||
return (new NumberFormatter(i18n::get_locale(), NumberFormatter::SPELLOUT))->format($v);
|
||||
}
|
||||
|
||||
public function scaffoldFormField($title = null, $params = null)
|
||||
{
|
||||
return NumericField::create($this->name, $title);
|
||||
|
Loading…
Reference in New Issue
Block a user