CurrencyRepository
class CurrencyRepository extends EntityRepository
Class CurrencyRepository is injected as alligator.currency_repository service. CurrencyRepository is used for crud operation for entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Alias for main entity |
Properties
| protected array | $ratioList | Array for caching ratios from database |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get ratio list from database
Remove all currency data from cache
Set isDefault param to false to default currency
Update currency ratio for all currencies
Delete multiple currencies
Get multiple currencies from database
Get all currencies that are auto calculated
Update multiple auto calculated currencies
Get default currency
Update currency ratio for specified currency name
Find ratio storage reference by id
Details
in JQGridTrait at line 27
jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)
All joins used in select.
Override in the repository class if needed. Should do nothing otherwise
in JQGridTrait at line 42
jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)
Should contain group by which jqgrid uses.
Override in the repository class if needed. Should do nothing otherwise
in JQGridTrait at line 61
array
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)
JQGrid function
in JQGridTrait at line 94
array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
JQGrid function
at line 45
array
getRatioList(bool $force = false)
Get ratio list from database
at line 74
RatioStorage
saveNewCurrency(RatioStorage $ratioStorage)
Persist new Currency
at line 93
removeCurrenciesFromCache()
Remove all currency data from cache
at line 103
bool
changeCurrentDefaultCurrency()
Set isDefault param to false to default currency
at line 129
bool
updateCurrencyToNewDefault(double $defaultRatio)
Update currency ratio for all currencies
at line 150
RatioStorage
editCurrency(RatioStorage $ratioStorage)
Merge Currency
at line 175
bool
deleteCurrencies(array $currenciesDB)
Delete multiple currencies
at line 196
array
getCurrenciesArray(array $array)
Get multiple currencies from database
at line 212
array
getAutoCalculatedCurrencies()
Get all currencies that are auto calculated
at line 228
boolean
updateAutoCalculatedCurrencies(array $currencies)
Update multiple auto calculated currencies
at line 256
array
getDefaultCurrencyEntity()
Get default currency
at line 270
bool
updateCurrencyRatioOnly(string $currencyName, double $value)
Update currency ratio for specified currency name
at line 296
RatioStorage|bool|Proxy|null|object
getReference(int $id)
Find ratio storage reference by id