Currency
extends Facade
in package
class Currency.
Tags
Table of Contents
Methods
- getActiveOptions() : array<string|int, mixed>
- getAllActiveCurrencies() : array<string|int, mixed>
- getCurrencies() : array<string|int, mixed>
- getName() : string|null
- getPriceFormatByCurrencyId() : string|null
- getUserCurrencyId() : string|null
- rules() : array<string|int, mixed>
- getFacadeAccessor() : mixed
Methods
getActiveOptions()
public
static getActiveOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getAllActiveCurrencies()
public
static getAllActiveCurrencies() : array<string|int, mixed>
Return values
array<string|int, mixed>getCurrencies()
public
static getCurrencies() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
public
static getName(string|null $code) : string|null
Parameters
- $code : string|null
Return values
string|nullgetPriceFormatByCurrencyId()
public
static getPriceFormatByCurrencyId(string $currencyId, float $price, string|null $precision = null) : string|null
Parameters
- $currencyId : string
- $price : float
- $precision = null : string|null
Return values
string|nullgetUserCurrencyId()
public
static getUserCurrencyId(User $context) : string|null
Parameters
- $context : User
Return values
string|nullrules()
public
static rules(string $name, array<string|int, mixed> $rules = []) : array<string|int, mixed>
Parameters
- $name : string
- $rules = [] : array<string|int, mixed>
Return values
array<string|int, mixed>getFacadeAccessor()
protected
static getFacadeAccessor() : mixed