public function getDisplayValue(DataObject $do) { $value = $this->getValue($do); switch ($this->getParameter('type')) { case 'currency': $value = CurrencyProperty::format($value, 2); break; } return $value; }
public function getDisplayValue() { $value = $this->getValue(); switch ($this->getParameter('format')) { case 'currency': $value = CurrencyProperty::format($value, 2); break; case 'date': // $value = DateProperty::format($value); break; } return $value; }