Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | CUSTOMER_NOTIFICATION_NOT_APPLICABLE = 2 |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
![]() | |
const | ENTITY_ID = 'entity_id' |
const | PARENT_ID = 'parent_id' |
const | IS_CUSTOMER_NOTIFIED = 'is_customer_notified' |
const | IS_VISIBLE_ON_FRONT = 'is_visible_on_front' |
const | COMMENT = 'comment' |
const | STATUS = 'status' |
const | CREATED_AT = 'created_at' |
const | ENTITY_NAME = 'entity_name' |
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) | |
Protected Attributes | |
$_order | |
$_eventPrefix = 'sales_order_status_history' | |
$_eventObject = 'status_history' | |
$_storeManager | |
![]() | |
$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 = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
Order status history comments
@api @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 19 of file History.php.
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
AttributeValueFactory | $customAttributeFactory, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource | $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 | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Framework\Model\ResourceModel\AbstractResource | $resource | |
\Magento\Framework\Data\Collection\AbstractDb | $resourceCollection | |
array | $data | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 56 of file History.php.
|
protected |
beforeSave | ( | ) |
getComment | ( | ) |
Returns comment
Implements OrderStatusHistoryInterface.
Definition at line 187 of file History.php.
getCreatedAt | ( | ) |
Returns created_at
Implements OrderStatusHistoryInterface.
Definition at line 197 of file History.php.
getEntityId | ( | ) |
Returns entity_id
Implements OrderStatusHistoryInterface.
Definition at line 215 of file History.php.
getEntityName | ( | ) |
Returns entity_name
Implements OrderStatusHistoryInterface.
Definition at line 225 of file History.php.
getExtensionAttributes | ( | ) |
{Retrieve existing extension attributes object or create a new one.
Implements OrderStatusHistoryInterface.
Definition at line 315 of file History.php.
getIsCustomerNotified | ( | ) |
Returns is_customer_notified
Implements OrderStatusHistoryInterface.
Definition at line 235 of file History.php.
getIsVisibleOnFront | ( | ) |
Returns is_visible_on_front
Implements OrderStatusHistoryInterface.
Definition at line 245 of file History.php.
getOrder | ( | ) |
Retrieve order instance
@codeCoverageIgnore
Definition at line 133 of file History.php.
getParentId | ( | ) |
Returns parent_id
Implements OrderStatusHistoryInterface.
Definition at line 255 of file History.php.
getStatus | ( | ) |
Returns status
Implements OrderStatusHistoryInterface.
Definition at line 265 of file History.php.
getStatusLabel | ( | ) |
getStore | ( | ) |
isCustomerNotificationNotApplicable | ( | ) |
Customer Notification Applicable check method
Definition at line 121 of file History.php.
setComment | ( | $comment | ) |
{Sets the comment for the order status history.
string | $comment |
Implements OrderStatusHistoryInterface.
Definition at line 289 of file History.php.
setCreatedAt | ( | $createdAt | ) |
{Sets the created-at timestamp for the order status history.
string | $createdAt | timestamp |
Implements OrderStatusHistoryInterface.
Definition at line 205 of file History.php.
setEntityName | ( | $entityName | ) |
{Sets the entity name for the order status history.
string | $entityName |
Implements OrderStatusHistoryInterface.
Definition at line 305 of file History.php.
setExtensionAttributes | ( | \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface | $extensionAttributes | ) |
{}
\Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface | $extensionAttributes |
Definition at line 326 of file History.php.
setIsCustomerNotified | ( | $flag = null | ) |
Notification flag
mixed | $flag | OPTIONAL (notification is not applicable by default) |
Implements OrderStatusHistoryInterface.
Definition at line 107 of file History.php.
setIsVisibleOnFront | ( | $isVisibleOnFront | ) |
{Sets the is-visible-on-storefront flag value for the order status history.
int | $isVisibleOnFront |
Implements OrderStatusHistoryInterface.
Definition at line 281 of file History.php.
setOrder | ( | \Magento\Sales\Model\Order | $order | ) |
Set order object and grab some metadata from it
\Magento\Sales\Model\Order | $order |
Definition at line 94 of file History.php.
setParentId | ( | $id | ) |
{Sets the parent ID for the order status history.
int | $id |
Implements OrderStatusHistoryInterface.
Definition at line 273 of file History.php.
setStatus | ( | $status | ) |
{Sets the status for the order status history.
string | $status |
Implements OrderStatusHistoryInterface.
Definition at line 297 of file History.php.
|
protected |
Definition at line 38 of file History.php.
|
protected |
Definition at line 33 of file History.php.
|
protected |
Definition at line 28 of file History.php.
|
protected |
Definition at line 43 of file History.php.
const CUSTOMER_NOTIFICATION_NOT_APPLICABLE = 2 |
Definition at line 21 of file History.php.