Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (CacheInterface $appCache, $options=null, $locale=null) | |
![]() | |
__construct ($options=null, $locale=null) | |
toCurrency ($value=null, array $options=array()) | |
setFormat (array $options=array()) | |
getSymbol ($currency=null, $locale=null) | |
getShortName ($currency=null, $locale=null) | |
getName ($currency=null, $locale=null) | |
getRegionList ($currency=null) | |
getCurrencyList ($region=null) | |
toString () | |
__toString () | |
setLocale ($locale=null) | |
getLocale () | |
getValue () | |
setValue ($value, $currency=null) | |
add ($value, $currency=null) | |
sub ($value, $currency=null) | |
div ($value, $currency=null) | |
mul ($value, $currency=null) | |
mod ($value, $currency=null) | |
compare ($value, $currency=null) | |
equals ($value, $currency=null) | |
isMore ($value, $currency=null) | |
isLess ($value, $currency=null) | |
getService () | |
setService ($service) | |
![]() | |
toCurrency ($value=null, array $options=[]) | |
setFormat (array $options=[]) | |
getSymbol ($currency=null, $locale=null) | |
getShortName ($currency=null, $locale=null) | |
getName ($currency=null, $locale=null) | |
getRegionList ($currency=null) | |
getCurrencyList ($region=null) | |
toString () | |
setLocale ($locale=null) | |
getLocale () | |
getValue () | |
setValue ($value, $currency=null) | |
add ($value, $currency=null) | |
sub ($value, $currency=null) | |
div ($value, $currency=null) | |
mul ($value, $currency=null) | |
mod ($value, $currency=null) | |
compare ($value, $currency=null) | |
equals ($value, $currency=null) | |
isMore ($value, $currency=null) | |
isLess ($value, $currency=null) | |
Additional Inherited Members | |
![]() | |
static | getCache () |
static | setCache (Zend_Cache_Core $cache) |
static | hasCache () |
static | removeCache () |
static | clearCache ($tag=null) |
![]() | |
static | getCache () |
static | setCache (\Zend_Cache_Core $cache) |
static | hasCache () |
static | removeCache () |
static | clearCache ($tag=null) |
![]() | |
const | NO_SYMBOL = 1 |
const | USE_SYMBOL = 2 |
const | USE_SHORTNAME = 3 |
const | USE_NAME = 4 |
const | STANDARD = 8 |
const | RIGHT = 16 |
const | LEFT = 32 |
![]() | |
_exchangeCurrency ($value, $currency) | |
_checkOptions (array $options=array()) | |
![]() | |
$_options | |
Definition at line 10 of file Currency.php.
__construct | ( | CacheInterface | $appCache, |
$options = null , |
|||
$locale = null |
|||
) |
Creates a currency instance.
CacheInterface | $appCache | |
string | array | $options | Options array or currency short name when string is given |
string | $locale | Locale name |
Definition at line 19 of file Currency.php.