diff options
| author | Tristan Zur <tzur@ccwn.org> | 2012-05-15 21:34:54 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@ccwn.org> | 2012-05-15 21:34:54 +0200 |
| commit | 1c57e4d02c914cb83d13ef919179f9cb73b5fbbe (patch) | |
| tree | 2d987f9905432d5fecd918591c581365276c0f85 /protected/components/Format.php | |
| parent | 94bb97f7b574ad8557d568a2ef1288dae3b4e9c8 (diff) | |
- Initiale Verein-Veranstaltungsverwaltung
- components/Html ergänzt für Anzeige der Einheiten-Dropdown Box
- Logo-Upload für Admins
- AngebotVerein mit Autocomplete und "Einheiten-Tausch"
Diffstat (limited to 'protected/components/Format.php')
| -rw-r--r-- | protected/components/Format.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php index 1be259f..a4802e2 100644 --- a/protected/components/Format.php +++ b/protected/components/Format.php @@ -8,8 +8,12 @@ class Format { return Yii::app()->locale->numberFormatter->formatDecimal($value).' '.$einheit; } - public static function decimal($value) { + public static function decimal($value, $pattern = null) { + if ($pattern !== null) { return Yii::app()->locale->numberFormatter->formatDecimal($value); + } else { + return Yii::app()->locale->numberFormatter->format($pattern, $value); + } } public static function percentage($value) { |
