value) { $val = Convert::raw2xml($this->value); $val = _t('SilverStripe\\Forms\\CurrencyField.CURRENCYSYMBOL', '$') . number_format(preg_replace('/[^0-9.-]/', "", $val), 2); $valforInput = Convert::raw2att($val); } else { $val = '' . _t('SilverStripe\\Forms\\CurrencyField.CURRENCYSYMBOL', '$') . '0.00'; $valforInput = ''; } return "extraClass() . "\" id=\"" . $this->ID() . "\">$val" . "name . "\" value=\"" . $valforInput . "\" />"; } /** * This already is a readonly field. */ public function performReadonlyTransformation() { return clone $this; } }