Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getOptionId () | |
getOptionQty () | |
getOptionSelections () | |
setOptionId ($optionId) | |
setOptionQty ($optionQty) | |
setOptionSelections (array $optionSelections) | |
getExtensionAttributes () | |
setExtensionAttributes (\Magento\Bundle\Api\Data\BundleOptionExtensionInterface $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) | |
Data Fields | |
const | OPTION_ID = 'option_id' |
const | OPTION_QTY = 'option_qty' |
const | OPTION_SELECTIONS = 'option_selections' |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Definition at line 11 of file BundleOption.php.
getExtensionAttributes | ( | ) |
{Retrieve existing extension attributes object or create a new one.
Implements BundleOptionInterface.
Definition at line 79 of file BundleOption.php.
getOptionId | ( | ) |
#- {Get bundle option id.
Implements BundleOptionInterface.
Definition at line 25 of file BundleOption.php.
getOptionQty | ( | ) |
{Get bundle option quantity.
Implements BundleOptionInterface.
Definition at line 34 of file BundleOption.php.
getOptionSelections | ( | ) |
{Get bundle option selection ids.
Implements BundleOptionInterface.
Definition at line 43 of file BundleOption.php.
setExtensionAttributes | ( | \Magento\Bundle\Api\Data\BundleOptionExtensionInterface | $extensionAttributes | ) |
{Set an extension attributes object.
\Magento\Bundle\Api\Data\BundleOptionExtensionInterface | $extensionAttributes |
Implements BundleOptionInterface.
Definition at line 88 of file BundleOption.php.
setOptionId | ( | $optionId | ) |
{Set bundle option id.
int | $optionId |
Implements BundleOptionInterface.
Definition at line 52 of file BundleOption.php.
setOptionQty | ( | $optionQty | ) |
{Set bundle option quantity.
int | $optionQty |
Implements BundleOptionInterface.
Definition at line 61 of file BundleOption.php.
setOptionSelections | ( | array | $optionSelections | ) |
{Set bundle option selection ids.
int[] | $optionSelections |
Implements BundleOptionInterface.
Definition at line 70 of file BundleOption.php.
const OPTION_ID = 'option_id' |
#+ Constants
Definition at line 16 of file BundleOption.php.
const OPTION_QTY = 'option_qty' |
Definition at line 17 of file BundleOption.php.
const OPTION_SELECTIONS = 'option_selections' |
Definition at line 18 of file BundleOption.php.