Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::init
Class initialization, invoked by the DI container.
Method of the class: CustomOrdersTableController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CustomOrdersTableController = new CustomOrdersTableController(); $CustomOrdersTableController->init( $data_store, $data_synchronizer, $data_cleanup, $refund_data_store, $batch_processing_controller, $features_controller, $order_cache, $order_cache_controller, $plugin_util, $db_util );
- $data_store(OrdersTableDataStore) (required)
- The data store to use.
- $data_synchronizer(DataSynchronizer) (required)
- The data synchronizer to use.
- $data_cleanup(LegacyDataCleanup) (required)
- The legacy data cleanup instance to use.
- $refund_data_store(OrdersTableRefundDataStore) (required)
- The refund data store to use.
- $batch_processing_controller(BatchProcessingController) (required)
- The batch processing controller to use.
- $features_controller(FeaturesController) (required)
- The features controller instance to use.
- $order_cache(OrderCache) (required)
- The order cache engine to use.
- $order_cache_controller(OrderCacheController) (required)
- The order cache controller to use.
- $plugin_util(PluginUtil) (required)
- The plugin util to use.
- $db_util(DatabaseUtil) (required)
- The database util to use.
CustomOrdersTableController::init() CustomOrdersTableController::init code WC 10.7.0
final public function init(
OrdersTableDataStore $data_store,
DataSynchronizer $data_synchronizer,
LegacyDataCleanup $data_cleanup,
OrdersTableRefundDataStore $refund_data_store,
BatchProcessingController $batch_processing_controller,
FeaturesController $features_controller,
OrderCache $order_cache,
OrderCacheController $order_cache_controller,
PluginUtil $plugin_util,
DatabaseUtil $db_util
) {
$this->data_store = $data_store;
$this->data_synchronizer = $data_synchronizer;
$this->data_cleanup = $data_cleanup;
$this->batch_processing_controller = $batch_processing_controller;
$this->refund_data_store = $refund_data_store;
$this->features_controller = $features_controller;
$this->order_cache = $order_cache;
$this->order_cache_controller = $order_cache_controller;
$this->plugin_util = $plugin_util;
$this->db_util = $db_util;
}