Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::init
Class initialization, invoked by the DI container.
Метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$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) (обязательный)
- The data store to use.
- $data_synchronizer(DataSynchronizer) (обязательный)
- The data synchronizer to use.
- $data_cleanup(LegacyDataCleanup) (обязательный)
- The legacy data cleanup instance to use.
- $refund_data_store(OrdersTableRefundDataStore) (обязательный)
- The refund data store to use.
- $batch_processing_controller(BatchProcessingController) (обязательный)
- The batch processing controller to use.
- $features_controller(FeaturesController) (обязательный)
- The features controller instance to use.
- $order_cache(OrderCache) (обязательный)
- The order cache engine to use.
- $order_cache_controller(OrderCacheController) (обязательный)
- The order cache controller to use.
- $plugin_util(PluginUtil) (обязательный)
- The plugin util to use.
- $db_util(DatabaseUtil) (обязательный)
- The database util to use.
Код CustomOrdersTableController::init() CustomOrdersTableController::init WC 9.9.4
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; }