mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-18 23:46:21 +02:00
15 lines
212 B
PHP
15 lines
212 B
PHP
|
<?php
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
class Double extends DBField {
|
||
|
|
||
|
function requireField() {
|
||
|
DB::requireField($this->tableName, $this->name, "double");
|
||
|
}
|
||
|
|
||
|
function Nice() {
|
||
|
return number_format($this->value, 2);
|
||
|
}
|
||
|
}
|
||
|
?>
|