Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getSourceCode () | |
setSourceCode (?string $sourceCode) | |
getName () | |
setName (?string $name) | |
getEmail () | |
setEmail (?string $email) | |
getContactName () | |
setContactName (?string $contactName) | |
isEnabled () | |
setEnabled (?bool $enabled) | |
getDescription () | |
setDescription (?string $description) | |
getLatitude () | |
setLatitude (?float $latitude) | |
getLongitude () | |
setLongitude (?float $longitude) | |
getCountryId () | |
setCountryId (?string $countryId) | |
getRegionId () | |
setRegionId (?int $regionId) | |
getRegion () | |
setRegion (?string $region) | |
getCity () | |
setCity (?string $city) | |
getStreet () | |
setStreet (?string $street) | |
getPostcode () | |
setPostcode (?string $postcode) | |
getPhone () | |
setPhone (?string $phone) | |
getFax () | |
setFax (?string $fax) | |
isUseDefaultCarrierConfig () | |
setUseDefaultCarrierConfig (?bool $useDefaultCarrierConfig) | |
getCarrierLinks () | |
setCarrierLinks (?array $carrierLinks) | |
getExtensionAttributes () | |
setExtensionAttributes (SourceExtensionInterface $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\InventoryApi\Api\Data\SourceExtensionInterface $extensionAttributes) | |
Protected Member Functions | |
_construct () | |
![]() | |
filterCustomAttributes ($data) | |
initializeCustomAttributes () | |
convertCustomAttributeValues (array &$customAttributes) | |
getCustomAttributesCodes () | |
_setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes) | |
_getExtensionAttributes () | |
![]() | |
_construct () | |
_init ($resourceModel) | |
_setResourceModel ($resourceName, $collectionName=null) | |
_getResource () | |
_getEventData () | |
_beforeLoad ($modelId, $field=null) | |
_afterLoad () | |
_hasModelChanged () | |
_getValidatorBeforeSave () | |
_createValidatorBeforeSave () | |
_getValidationRulesBeforeSave () | |
_clearReferences () | |
_clearData () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Additional Inherited Members | |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
![]() | |
const | SOURCE_CODE = 'source_code' |
const | NAME = 'name' |
const | CONTACT_NAME = 'contact_name' |
const | EMAIL = 'email' |
const | ENABLED = 'enabled' |
const | DESCRIPTION = 'description' |
const | LATITUDE = 'latitude' |
const | LONGITUDE = 'longitude' |
const | COUNTRY_ID = 'country_id' |
const | REGION_ID = 'region_id' |
const | REGION = 'region' |
const | CITY = 'city' |
const | STREET = 'street' |
const | POSTCODE = 'postcode' |
const | PHONE = 'phone' |
const | FAX = 'fax' |
const | USE_DEFAULT_CARRIER_CONFIG = 'use_default_carrier_config' |
const | CARRIER_LINKS = 'carrier_links' |
![]() | |
$extensionAttributesFactory | |
$extensionAttributes | |
$customAttributeFactory | |
$customAttributesCodes = null | |
$customAttributesChanged = false | |
![]() | |
$_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 = [] | |
![]() | |
static | $_underscoreCache = [] |
|
protected |
Definition at line 25 of file Source.php.
getCarrierLinks | ( | ) |
Implements SourceInterface.
Definition at line 313 of file Source.php.
getCity | ( | ) |
Get source city
Implements SourceInterface.
Definition at line 217 of file Source.php.
getContactName | ( | ) |
Get source contact name
Implements SourceInterface.
Definition at line 81 of file Source.php.
getCountryId | ( | ) |
Get source country id
Implements SourceInterface.
Definition at line 167 of file Source.php.
getDescription | ( | ) |
Get source description
Implements SourceInterface.
Definition at line 115 of file Source.php.
getEmail | ( | ) |
Get source email
Implements SourceInterface.
Definition at line 65 of file Source.php.
getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object
Implements SourceInterface.
Definition at line 329 of file Source.php.
getFax | ( | ) |
Get source fax
Implements SourceInterface.
Definition at line 281 of file Source.php.
getLatitude | ( | ) |
Get source latitude
Implements SourceInterface.
Definition at line 131 of file Source.php.
getLongitude | ( | ) |
Get source longitude
Implements SourceInterface.
Definition at line 149 of file Source.php.
getName | ( | ) |
Get source name
Implements SourceInterface.
Definition at line 49 of file Source.php.
getPhone | ( | ) |
Get source phone number
Implements SourceInterface.
Definition at line 265 of file Source.php.
getPostcode | ( | ) |
Get source post code
Implements SourceInterface.
Definition at line 249 of file Source.php.
getRegion | ( | ) |
Get region title if source has custom region
Implements SourceInterface.
Definition at line 201 of file Source.php.
getRegionId | ( | ) |
Get region id if source has registered region.
Implements SourceInterface.
Definition at line 183 of file Source.php.
getSourceCode | ( | ) |
Get source code
Implements SourceInterface.
Definition at line 33 of file Source.php.
getStreet | ( | ) |
Get source street name
Implements SourceInterface.
Definition at line 233 of file Source.php.
isEnabled | ( | ) |
Check if source is enabled. For new entity can be null
Implements SourceInterface.
Definition at line 97 of file Source.php.
isUseDefaultCarrierConfig | ( | ) |
Check is need to use default config
Implements SourceInterface.
Definition at line 297 of file Source.php.
setCarrierLinks | ( | ?array | $carrierLinks | ) |
Implements SourceInterface.
Definition at line 321 of file Source.php.
setCity | ( | ?string | $city | ) |
Set source city
string | null | $city |
Implements SourceInterface.
Definition at line 225 of file Source.php.
setContactName | ( | ?string | $contactName | ) |
Set source contact name
string | null | $contactName |
Implements SourceInterface.
Definition at line 89 of file Source.php.
setCountryId | ( | ?string | $countryId | ) |
Set source country id
string | null | $countryId |
Implements SourceInterface.
Definition at line 175 of file Source.php.
setDescription | ( | ?string | $description | ) |
Set source description
string | null | $description |
Implements SourceInterface.
Definition at line 123 of file Source.php.
setEmail | ( | ?string | ) |
Set source email
string | null |
Implements SourceInterface.
Definition at line 73 of file Source.php.
setEnabled | ( | ?bool | $enabled | ) |
Enable or disable source
bool | null | $enabled |
Implements SourceInterface.
Definition at line 107 of file Source.php.
setExtensionAttributes | ( | SourceExtensionInterface | $extensionAttributes | ) |
Definition at line 342 of file Source.php.
setFax | ( | ?string | $fax | ) |
Set source fax
string | null | $fax |
Implements SourceInterface.
Definition at line 289 of file Source.php.
setLatitude | ( | ?float | $latitude | ) |
Set source latitude
float | null | $latitude |
Implements SourceInterface.
Definition at line 141 of file Source.php.
setLongitude | ( | ?float | $longitude | ) |
Set source longitude
float | null | $longitude |
Implements SourceInterface.
Definition at line 159 of file Source.php.
setName | ( | ?string | $name | ) |
Set source name
string | null | $name |
Implements SourceInterface.
Definition at line 57 of file Source.php.
setPhone | ( | ?string | $phone | ) |
Set source phone number
string | null | $phone |
Implements SourceInterface.
Definition at line 273 of file Source.php.
setPostcode | ( | ?string | $postcode | ) |
Set source post code
string | null | $postcode |
Implements SourceInterface.
Definition at line 257 of file Source.php.
setRegion | ( | ?string | $region | ) |
Set source region title
string | null | $region |
Implements SourceInterface.
Definition at line 209 of file Source.php.
setRegionId | ( | ?int | $regionId | ) |
Set region id if source has registered region.
int | null | $regionId |
Implements SourceInterface.
Definition at line 193 of file Source.php.
setSourceCode | ( | ?string | $sourceCode | ) |
Set source code
string | null | $sourceCode |
Implements SourceInterface.
Definition at line 41 of file Source.php.
setStreet | ( | ?string | $street | ) |
Set source street name
string | null | $street |
Implements SourceInterface.
Definition at line 241 of file Source.php.
setUseDefaultCarrierConfig | ( | ?bool | $useDefaultCarrierConfig | ) |
bool | null | $useDefaultCarrierConfig |
Implements SourceInterface.
Definition at line 305 of file Source.php.