Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
operation_searchable.php File Reference

Go to the source code of this file.

Variables

 $resource = Bootstrap::getObjectManager()->get(\Magento\Framework\App\ResourceConnection::class)
 
 $connection = $resource->getConnection()
 
 $bulkTable = $resource->getTableName('magento_bulk')
 
 $operationTable = $resource->getTableName('magento_operation')
 
 $bulks
 
 $operations
 
 $bulkQuery
 
foreach($bulks as $bulk) $operationQuery
 

Variable Documentation

◆ $bulkQuery

$bulkQuery
Initial value:
= "INSERT INTO {$bulkTable} (`uuid`, `user_id`, `description`, `operation_count`, `start_time`)"
. " VALUES (:uuid, :user_id, :description, :operation_count, :start_time);"

Definition at line 58 of file operation_searchable.php.

◆ $bulks

$bulks
Initial value:
= [
'started_searchable' => [
'uuid' => 'bulk-uuid-searchable-6',
'user_id' => 1,
'description' => 'Bulk Description',
'operation_count' => 3,
'start_time' => '2009-10-10 00:00:00',
],
]

Definition at line 20 of file operation_searchable.php.

◆ $bulkTable

$bulkTable = $resource->getTableName('magento_bulk')

Definition at line 17 of file operation_searchable.php.

◆ $connection

$connection = $resource->getConnection()

Definition at line 16 of file operation_searchable.php.

◆ $operationQuery

foreach ( $bulks as $bulk) $operationQuery
Initial value:
= "INSERT INTO {$operationTable}"
. " (`bulk_uuid`, `topic_name`, `serialized_data`, `status`, `error_code`, `result_message`)"
. " VALUES (:bulk_uuid, :topic_name, :serialized_data, :status, :error_code, :result_message);"

Definition at line 64 of file operation_searchable.php.

◆ $operations

$operations
Initial value:
= [
[
'bulk_uuid' => 'bulk-uuid-searchable-6',
'topic_name' => 'topic-5',
'serialized_data' => json_encode(['entity_id' => 5]),
'status' => OperationInterface::STATUS_TYPE_COMPLETE,
'error_code' => null,
'result_message' => null,
],
[
'bulk_uuid' => 'bulk-uuid-searchable-6',
'topic_name' => 'topic-5',
'serialized_data' => json_encode(['entity_id' => 5, 'meta_information' => 'Test']),
'status' => OperationInterface::STATUS_TYPE_NOT_RETRIABLY_FAILED,
'error_code' => 1111,
'result_message' => 'Something went wrong during your request',
],
[
'bulk_uuid' => 'bulk-uuid-searchable-6',
'topic_name' => 'topic-5',
'serialized_data' => json_encode(['entity_id' => 5]),
'status' => OperationInterface::STATUS_TYPE_RETRIABLY_FAILED,
'error_code' => 2222,
'result_message' => 'Entity with ID=4 does not exist',
],
]

Definition at line 30 of file operation_searchable.php.

◆ $operationTable

$operationTable = $resource->getTableName('magento_operation')

Definition at line 18 of file operation_searchable.php.

◆ $resource

$resource = Bootstrap::getObjectManager()->get(\Magento\Framework\App\ResourceConnection::class)

Definition at line 15 of file operation_searchable.php.