mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 02:31:35 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56212 467b73ca-7a2a-4603-9d3b-597d59a354a9
16 lines
250 B
PHP
16 lines
250 B
PHP
<?php
|
|
/**
|
|
* @package sapphire
|
|
* @subpackage model
|
|
*/
|
|
class Double extends DBField {
|
|
|
|
function requireField() {
|
|
DB::requireField($this->tableName, $this->name, "double");
|
|
}
|
|
|
|
function Nice() {
|
|
return number_format($this->value, 2);
|
|
}
|
|
}
|
|
?>
|