Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getGlobalCurrencyCode () | |
getBaseCurrencyCode () | |
getStoreCurrencyCode () | |
getQuoteCurrencyCode () | |
getStoreToBaseRate () | |
getStoreToQuoteRate () | |
getBaseToGlobalRate () | |
getBaseToQuoteRate () | |
setGlobalCurrencyCode ($globalCurrencyCode) | |
setBaseCurrencyCode ($baseCurrencyCode) | |
setStoreCurrencyCode ($storeCurrencyCode) | |
setQuoteCurrencyCode ($quoteCurrencyCode) | |
setStoreToBaseRate ($storeToBaseRate) | |
setStoreToQuoteRate ($storeToQuoteRate) | |
setBaseToGlobalRate ($baseToGlobalRate) | |
setBaseToQuoteRate ($baseToQuoteRate) | |
getExtensionAttributes () | |
setExtensionAttributes (\Magento\Quote\Api\Data\CurrencyExtensionInterface $extensionAttributes) | |
![]() | |
__construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
getCustomAttributes () | |
getCustomAttribute ($attributeCode) | |
setCustomAttributes (array $attributes) | |
setCustomAttribute ($attributeCode, $attributeValue) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
setId ($value) | |
__sleep () | |
__wakeup () | |
![]() | |
__construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
__sleep () | |
__wakeup () | |
setIdFieldName ($name) | |
getIdFieldName () | |
getId () | |
setId ($value) | |
isDeleted ($isDeleted=null) | |
hasDataChanges () | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
setDataChanges ($value) | |
getOrigData ($key=null) | |
setOrigData ($key=null, $data=null) | |
dataHasChangedFor ($field) | |
getResourceName () | |
getResourceCollection () | |
getCollection () | |
load ($modelId, $field=null) | |
beforeLoad ($identifier, $field=null) | |
afterLoad () | |
isSaveAllowed () | |
setHasDataChanges ($flag) | |
save () | |
afterCommitCallback () | |
isObjectNew ($flag=null) | |
beforeSave () | |
validateBeforeSave () | |
getCacheTags () | |
cleanModelCache () | |
afterSave () | |
delete () | |
beforeDelete () | |
afterDelete () | |
afterDeleteCommit () | |
getResource () | |
getEntityId () | |
setEntityId ($entityId) | |
clearInstance () | |
getStoredData () | |
getEventPrefix () | |
![]() | |
__construct (array $data=[]) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
getDataByPath ($path) | |
getDataByKey ($key) | |
setDataUsingMethod ($key, $args=[]) | |
getDataUsingMethod ($key, $args=null) | |
hasData ($key='') | |
toArray (array $keys=[]) | |
convertToArray (array $keys=[]) | |
toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
toJson (array $keys=[]) | |
convertToJson (array $keys=[]) | |
toString ($format='') | |
__call ($method, $args) | |
isEmpty () | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
debug ($data=null, &$objects=[]) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
![]() | |
setExtensionAttributes (\Magento\Quote\Api\Data\CurrencyExtensionInterface $extensionAttributes) | |
@codeCoverageIgnore
Definition at line 11 of file Currency.php.
getBaseCurrencyCode | ( | ) |
{Get base currency code
Implements CurrencyInterface.
Definition at line 25 of file Currency.php.
getBaseToGlobalRate | ( | ) |
{Get base currency to global currency rate
Implements CurrencyInterface.
Definition at line 65 of file Currency.php.
getBaseToQuoteRate | ( | ) |
{Get base currency to quote currency rate
Implements CurrencyInterface.
Definition at line 73 of file Currency.php.
getExtensionAttributes | ( | ) |
{Retrieve existing extension attributes object or create a new one.
Implements CurrencyInterface.
Definition at line 171 of file Currency.php.
getGlobalCurrencyCode | ( | ) |
{#- Get global currency code
Implements CurrencyInterface.
Definition at line 17 of file Currency.php.
getQuoteCurrencyCode | ( | ) |
{Get quote currency code
Implements CurrencyInterface.
Definition at line 41 of file Currency.php.
getStoreCurrencyCode | ( | ) |
{Get store currency code
Implements CurrencyInterface.
Definition at line 33 of file Currency.php.
getStoreToBaseRate | ( | ) |
{Get store currency to base currency rate
Implements CurrencyInterface.
Definition at line 49 of file Currency.php.
getStoreToQuoteRate | ( | ) |
{Get store currency to quote currency rate
Implements CurrencyInterface.
Definition at line 57 of file Currency.php.
setBaseCurrencyCode | ( | $baseCurrencyCode | ) |
Set base currency code
string | $baseCurrencyCode |
Implements CurrencyInterface.
Definition at line 95 of file Currency.php.
setBaseToGlobalRate | ( | $baseToGlobalRate | ) |
Set base currency to global currency rate
float | $baseToGlobalRate |
Implements CurrencyInterface.
Definition at line 150 of file Currency.php.
setBaseToQuoteRate | ( | $baseToQuoteRate | ) |
Set base currency to quote currency rate
float | $baseToQuoteRate |
Implements CurrencyInterface.
Definition at line 161 of file Currency.php.
setExtensionAttributes | ( | \Magento\Quote\Api\Data\CurrencyExtensionInterface | $extensionAttributes | ) |
{}
\Magento\Quote\Api\Data\CurrencyExtensionInterface | $extensionAttributes |
Definition at line 182 of file Currency.php.
setGlobalCurrencyCode | ( | $globalCurrencyCode | ) |
Set global currency code
string | $globalCurrencyCode |
Implements CurrencyInterface.
Definition at line 84 of file Currency.php.
setQuoteCurrencyCode | ( | $quoteCurrencyCode | ) |
Set quote currency code
string | $quoteCurrencyCode |
Implements CurrencyInterface.
Definition at line 117 of file Currency.php.
setStoreCurrencyCode | ( | $storeCurrencyCode | ) |
Set store currency code
string | $storeCurrencyCode |
Implements CurrencyInterface.
Definition at line 106 of file Currency.php.
setStoreToBaseRate | ( | $storeToBaseRate | ) |
Set store currency to base currency rate
float | $storeToBaseRate |
Implements CurrencyInterface.
Definition at line 128 of file Currency.php.
setStoreToQuoteRate | ( | $storeToQuoteRate | ) |
Set store currency to quote currency rate
float | $storeToQuoteRate |
Implements CurrencyInterface.
Definition at line 139 of file Currency.php.