Definition at line 40 of file currency_type_renderer.inc.
◆ CurrencyTypeRenderer()
CurrencyTypeRenderer::CurrencyTypeRenderer |
( |
| ) |
|
◆ format()
static CurrencyTypeRenderer::format |
( |
|
$value, |
|
|
|
$template = "" |
|
) |
| |
|
static |
Reimplemented from AbstractTypeRenderer.
Definition at line 65 of file currency_type_renderer.inc.
67 $template = trim($template);
69 if ($value ==
"" || !isset($value) || !is_numeric($value))
74 if ($template ==
"numeric")
76 $text = number_format($value, 2,
".",
"");
80 $places = substr($template, 8);
81 $text = number_format($value, 2,
".",
"");
83 else if ($template !=
"" && is_numeric($template))
85 $text = number_format($value, $template);
89 $text = number_format($value, 2);
startsWith($text, $start)
Tests whether a string starts with a given sub-string.
The documentation for this class was generated from the following file: