Ejemplo n.º 1
0
 public static function _formatPriceToString($a_price, $a_currency_symbol = false)
 {
     if (!$a_currency_symbol) {
         $currency_obj = $_SESSION['payment_currency'];
         $currency_symbol = $currency_obj['symbol'];
     } else {
         $currency_symbol = $a_currency_symbol;
     }
     $separator = ilPaymentCurrency::_getDecimalSeparator();
     $price_string = number_format($a_price, '2', $separator, '');
     return $price_string . ' ' . $currency_symbol;
 }