HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wpforms/src/Pro/Integrations/LiteConnect/LiteConnect.php
<?php

namespace WPForms\Pro\Integrations\LiteConnect;

/**
 * Class LiteConnect for WPForms Pro.
 *
 * @since 1.7.4
 */
class LiteConnect extends \WPForms\Integrations\LiteConnect\LiteConnect {

	/**
	 * The Integration object.
	 *
	 * @since 1.7.4
	 *
	 * @var Integration
	 */
	private $integration;

	/**
	 * Import Entries Task object.
	 *
	 * @since 1.7.4
	 *
	 * @var ImportEntriesTask
	 */
	private $import_entries_task;

	/**
	 * Add Restored Flag Task object.
	 *
	 * @since 1.7.4
	 *
	 * @var AddRestoredFlagTask
	 */
	private $add_restored_flag_task;

	/**
	 * Admin object.
	 *
	 * @since 1.7.4
	 *
	 * @var Admin
	 */
	private $admin;

	/**
	 * Loads the integration.
	 *
	 * @since 1.7.4
	 */
	public function load() {

		parent::load();

		// Process import task.
		$this->import_entries_task = new ImportEntriesTask();

		// Process add restored flag task.
		$this->add_restored_flag_task = new AddRestoredFlagTask();

		// We always need to instance the Integration class as part of the load process for the Lite Connect integration.
		$this->integration = new Integration();

		// Load the Admin class.
		if ( is_admin() ) {
			$this->admin = new Admin();
		}
	}
}