mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-16 22:46:20 +02:00
60860cc1b9
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);
|
|
}
|
|
}
|
|
?>
|