Class Socialveo\Core\helpers\MoneyHelper

InheritanceSocialveo\Core\helpers\MoneyHelper

Class MoneyHelper

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
FORMAT_DECIMALS 'decimals' Socialveo\Core\helpers\MoneyHelper
FORMAT_POINT 'dec_point' Socialveo\Core\helpers\MoneyHelper
FORMAT_PREFIX 'pre' Socialveo\Core\helpers\MoneyHelper
FORMAT_SUFFIX 'post' Socialveo\Core\helpers\MoneyHelper
FORMAT_THOUSANDS 'thousands_sep' Socialveo\Core\helpers\MoneyHelper
FORMAT_THOUSANDS_LENGTH 'thousands_len' Socialveo\Core\helpers\MoneyHelper

Method Details

format() public static method

Format money

public static string format ( $number, $currency, $language null )
$number integer|float
$currency string
$language string

[optional]

throws Exception
getMoneyFormat() public static method

Get money format

public static string getMoneyFormat ( $language null )
$language string

[optional]

replacePlaceholders() public static method

Replace placeholders

public static mixed replacePlaceholders ( $format, $currency )
$format string
$currency string
throws Exception