示例#1
0
 public function getDisplayValue(DataObject $do)
 {
     $value = $this->getValue($do);
     switch ($this->getParameter('type')) {
         case 'currency':
             $value = CurrencyProperty::format($value, 2);
             break;
     }
     return $value;
 }
示例#2
0
 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;
 }