|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Member Functions | |
| _construct () | |
Protected Member Functions inherited from AbstractExtensibleModel | |
| filterCustomAttributes ($data) | |
| initializeCustomAttributes () | |
| convertCustomAttributeValues (array &$customAttributes) | |
| getCustomAttributesCodes () | |
| _setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes) | |
| _getExtensionAttributes () | |
Protected Member Functions inherited from AbstractModel | |
| _construct () | |
| _init ($resourceModel) | |
| _setResourceModel ($resourceName, $collectionName=null) | |
| _getResource () | |
| _getEventData () | |
| _beforeLoad ($modelId, $field=null) | |
| _afterLoad () | |
| _hasModelChanged () | |
| _getValidatorBeforeSave () | |
| _createValidatorBeforeSave () | |
| _getValidationRulesBeforeSave () | |
| _clearReferences () | |
| _clearData () | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
Protected Attributes | |
| $_typeFactory | |
Protected Attributes inherited from AbstractExtensibleModel | |
| $extensionAttributesFactory | |
| $extensionAttributes | |
| $customAttributeFactory | |
| $customAttributesCodes = null | |
| $customAttributesChanged = false | |
Protected Attributes inherited from AbstractModel | |
| $_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 = [] | |
Protected Attributes inherited from DataObject | |
| $_data = [] | |
Additional Inherited Members | |
Data Fields inherited from CustomAttributesDataInterface | |
| const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
Data Fields inherited from ExtensibleDataInterface | |
| const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
| __construct | ( | \Magento\Framework\Model\Context | $context, |
| \Magento\Framework\Registry | $registry, | ||
| \Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
| AttributeValueFactory | $customAttributeFactory, | ||
| \Magento\GiftMessage\Model\TypeFactory | $typeFactory, | ||
| \Magento\GiftMessage\Model\ResourceModel\Message | $resource = null, |
||
| \Magento\Framework\Data\Collection\AbstractDb | $resourceCollection = null, |
||
| array | $data = [] |
||
| ) |
| \Magento\Framework\Model\Context | $context | |
| \Magento\Framework\Registry | $registry | |
| \Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory | |
| AttributeValueFactory | $customAttributeFactory | |
| TypeFactory | $typeFactory | |
| \Magento\GiftMessage\Model\ResourceModel\Message | $resource | |
| \Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
| array | $data |
Definition at line 35 of file Message.php.
|
protected |
| getCustomerId | ( | ) |
{Return the customer ID.
Implements MessageInterface.
Definition at line 107 of file Message.php.
| getEntityModelByType | ( | $type | ) |
Return model from entity type
| string | $type |
Definition at line 71 of file Message.php.
| getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implements MessageInterface.
Definition at line 173 of file Message.php.
| getGiftMessageId | ( | ) |
{#- Return the gift message ID.
Implements MessageInterface.
Definition at line 91 of file Message.php.
| getMessage | ( | ) |
{Return the message text.
Implements MessageInterface.
Definition at line 155 of file Message.php.
| getRecipient | ( | ) |
{Return the recipient name.
Implements MessageInterface.
Definition at line 139 of file Message.php.
| getSender | ( | ) |
{Return the sender name.
Implements MessageInterface.
Definition at line 123 of file Message.php.
| isMessageEmpty | ( | ) |
| setCustomerId | ( | $id | ) |
{Set the customer ID.
| int | null | $id |
Implements MessageInterface.
Definition at line 115 of file Message.php.
| setExtensionAttributes | ( | \Magento\GiftMessage\Api\Data\MessageExtensionInterface | $extensionAttributes | ) |
Set an extension attributes object.
| \Magento\GiftMessage\Api\Data\MessageExtensionInterface | $extensionAttributes |
Implements MessageInterface.
Definition at line 184 of file Message.php.
| setGiftMessageId | ( | $id | ) |
{Set the gift message ID.
| int | null | $id |
Implements MessageInterface.
Definition at line 99 of file Message.php.
| setMessage | ( | $message | ) |
{Set the message text.
| string | $message |
Implements MessageInterface.
Definition at line 163 of file Message.php.
| setRecipient | ( | $recipient | ) |
{Get the recipient name.
| string | $recipient |
Implements MessageInterface.
Definition at line 147 of file Message.php.
| setSender | ( | $sender | ) |
{Set the sender name.
| string | $sender |
Implements MessageInterface.
Definition at line 131 of file Message.php.
|
protected |
Definition at line 23 of file Message.php.