Action_Scheduler\Migration

Controller::get_store_class()publicWC 1.0

Set the action store class name.

Method of the class: Controller{}

No Hooks.

Return

String.

Usage

$Controller = new Controller();
$Controller->get_store_class( $class );
$class(string) (required)
Classname of the store class.

Controller::get_store_class() code WC 7.3.0

public function get_store_class( $class ) {
	if ( \ActionScheduler_DataController::is_migration_complete() ) {
		return \ActionScheduler_DataController::DATASTORE_CLASS;
	} elseif ( \ActionScheduler_Store::DEFAULT_CLASS !== $class ) {
		$this->store_classname = $class;
		return $class;
	} else {
		return 'ActionScheduler_HybridStore';
	}
}