/** * @see parent::getValue() */ function getValue($object, $smarty = null, $params = array()) { $value = $object->{$this->fieldName}; $decimals = CMbArray::extract($params, "decimals", $this->decimals); $empty = CMbArray::extract($params, "empty"); return CSmartyMB::currency($value, $decimals, $this->precise, $empty); }