mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-31 14:57:50 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60203 467b73ca-7a2a-4603-9d3b-597d59a354a9
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);
|
|
}
|
|
}
|
|
?>
|