Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Eav\Model\Entity\AttributeFactory $attributeFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Tax\Model\CalculationFactory $calculationFactory, \Magento\Customer\Model\Session $customerSession, AccountManagementInterface $accountManagement, \Magento\Tax\Helper\Data $taxData, \Magento\Weee\Model\ResourceModel\Tax $resource, \Magento\Weee\Model\Config $weeeConfig, PriceCurrencyInterface $priceCurrency, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
getWeeeAmount ( $product, $shipping=null, $billing=null, $website=null, $calculateTax=false) | |
getWeeeAmountExclTax ( $product, $shipping=null, $billing=null, $website=null) | |
getWeeeAttributeCodes ($forceEnabled=false) | |
getWeeeTaxAttributeCodes ($store=null, $forceEnabled=false) | |
isWeeeInLocation ($countryId, $regionId, $websiteId) | |
![]() | |
__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) | |
Data Fields | |
const | DISPLAY_INCL = 0 |
const | DISPLAY_INCL_DESCR = 1 |
const | DISPLAY_EXCL_DESCR_INCL = 2 |
const | DISPLAY_EXCL = 3 |
Protected Member Functions | |
_construct () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_allAttributes = null | |
$_taxData = null | |
$_attributeFactory | |
$_storeManager | |
$_calculationFactory | |
$_customerSession | |
$weeeConfig | |
$priceCurrency | |
$accountManagement | |
![]() | |
$_eventPrefix = 'core_abstract' | |
$_eventObject = 'object' | |
$_idFieldName = 'id' | |
$_hasDataChanges = false | |
$_origData | |
$_isDeleted = false | |
$_resource | |
$_resourceCollection | |
$_resourceName | |
$_collectionName | |
$_cacheTag = false | |
$_dataSaveAllowed = true | |
$_isObjectNew = null | |
$_validatorBeforeSave = null | |
$_eventManager | |
$_cacheManager | |
$_registry | |
$_logger | |
$_appState | |
$_actionValidator | |
$storedData = [] | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
@SuppressWarnings(PHPMD.CouplingBetweenObjects) @api
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Eav\Model\Entity\AttributeFactory | $attributeFactory, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Tax\Model\CalculationFactory | $calculationFactory, | ||
\Magento\Customer\Model\Session | $customerSession, | ||
AccountManagementInterface | $accountManagement, | ||
\Magento\Tax\Helper\Data | $taxData, | ||
\Magento\Weee\Model\ResourceModel\Tax | $resource, | ||
\Magento\Weee\Model\Config | $weeeConfig, | ||
PriceCurrencyInterface | $priceCurrency, | ||
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null , |
||
array | $data = [] |
||
) |
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\Eav\Model\Entity\AttributeFactory | $attributeFactory | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Tax\Model\CalculationFactory | $calculationFactory | |
\Magento\Customer\Model\Session | $customerSession | |
AccountManagementInterface | $accountManagement | |
\Magento\Tax\Helper\Data | $taxData | |
\Magento\Weee\Model\ResourceModel\Tax | $resource | |
Config | $weeeConfig | |
PriceCurrencyInterface | $priceCurrency | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 107 of file Tax.php.
getWeeeAmount | ( | $product, | |
$shipping = null , |
|||
$billing = null , |
|||
$website = null , |
|||
$calculateTax = false |
|||
) |
getWeeeAmountExclTax | ( | $product, | |
$shipping = null , |
|||
$billing = null , |
|||
$website = null |
|||
) |
getWeeeAttributeCodes | ( | $forceEnabled = false | ) |
bool | $forceEnabled |
Definition at line 206 of file Tax.php.
getWeeeTaxAttributeCodes | ( | $store = null , |
|
$forceEnabled = false |
|||
) |
isWeeeInLocation | ( | $countryId, | |
$regionId, | |||
$websiteId | |||
) |
const DISPLAY_EXCL_DESCR_INCL = 2 |
const DISPLAY_INCL_DESCR = 1 |