CurrencyBundleInterface

interface CurrencyBundleInterface implements ResourceBundleInterface Gives access to currency-related ICU data. Methods string[] getLocales() Returns the list of locales that this bundle supports. from ResourceBundleInterface string|null getCurrencySymbol(string $currency, string $displayLocale = null) Returns the symbol used for a currency. string|null getCurrencyName(string $currency, string $displayLocale = null) Returns the name of a currency. string[] getCurrencyNames(

CurrencyBundle::getLocales()

string[] getLocales() Returns the list of locales that this bundle supports. Return Value string[] A list of locale codes.

CurrencyBundle::getRoundingIncrement()

getRoundingIncrement($currency) Data provider for {@link \Symfony\Component\Intl\Currency::getRoundingIncrement()}. Parameters $currency

CurrencyBundle::getCurrencySymbol()

string|null getCurrencySymbol(string $currency, string $displayLocale = null) Returns the symbol used for a currency. Parameters string $currency A currency code (e.g. "EUR"). string $displayLocale Optional. The locale to return the result in. Defaults to {@link \Locale::getDefault()}. Return Value string|null The currency symbol or NULL if not found.

Currency

class Currency extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_CURRENCY_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods sta

CurrencyBundle::getCurrencyName()

string|null getCurrencyName(string $currency, string $displayLocale = null) Returns the name of a currency. Parameters string $currency A currency code (e.g. "EUR"). string $displayLocale Optional. The locale to return the name in. Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the currency or NULL if not found.

CurrencyBundle

class CurrencyBundle extends CurrencyDataProvider implements CurrencyBundleInterface Default implementation of {@link CurrencyBundleInterface}. Constants INDEX_SYMBOL INDEX_NAME INDEX_FRACTION_DIGITS INDEX_ROUNDING_INCREMENT Methods __construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a new currency bundle. getCurrencies() from CurrencyDataProvider getSymbol($currency, $displayLocale = null) from CurrencyD

CsvFileDumper::setCsvControl()

setCsvControl(string $delimiter = ';', string $enclosure = '"') Sets the delimiter and escape character for CSV. Parameters string $delimiter delimiter character string $enclosure enclosure character

CsvFileLoader

class CsvFileLoader extends FileLoader CsvFileLoader loads translations from CSV files. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. from FileLoader setCsvControl(string $delimiter = ';', string $enclosure = '"', string $escape = '\\') Sets the delimiter, enclosure, and escape character for CSV. Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages')

CsvFileDumper

class CsvFileDumper extends FileDumper CsvFileDumper generates a csv formatted string representation of a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messages, string $domai