38 require_once realpath(dirname(__FILE__).
"/abstract_type_renderer.inc");
65 static function format($value, $template =
"")
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);
static format($value, $template="")
startsWith($text, $start)
Tests whether a string starts with a given sub-string.