mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-19 16:06:32 +02:00
16 lines
211 B
PHP
16 lines
211 B
PHP
|
<?php
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
class Float extends DBField {
|
||
|
|
||
|
function requireField() {
|
||
|
DB::requireField($this->tableName, $this->name, "float");
|
||
|
}
|
||
|
|
||
|
function Nice() {
|
||
|
return number_format($this->value, 2);
|
||
|
}
|
||
|
}
|
||
|
?>
|