38 require_once realpath(dirname(__FILE__).
"/abstract_type_renderer.inc");
46 static function format($value, $template =
"")
48 $template = trim($template);
50 if ($value ==
"" || !is_numeric($value))
63 $places = substr($template, 10);
64 $text = number_format($value, $places,
".",
"");
72 else if ($template ==
"numeric")
74 $text = number_format($value, 2,
".",
"");
78 $places = substr($template, 8);
79 $text = number_format($value, $places,
".",
"");
81 else if ($template !=
"" && is_numeric($template))
83 $text = number_format($value, $template);
static format($value, $template="")
startsWith($text, $start)
Tests whether a string starts with a given sub-string.