MetaFox

Currency extends Facade
in package

class Currency.

Tags
see
Currency

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|null

getPriceFormatByCurrencyId()

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|null

getUserCurrencyId()

public static getUserCurrencyId(User $context) : string|null
Parameters
$context : User
Return values
string|null

rules()

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

        
On this page

Search results