Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/flexible-shipping-pro   php

Repository URL to install this package:

Version: 1.11.1 

/ wpdesk / wp-wpdesk-tracker / src / class-wpdesk-tracker-factory-prefixed.php

<?php

namespace FSProVendor;

/**
 * WP Desk Tracker
 *
 * @class        WPDESK_Tracker
 * @version        1.3.2
 * @package        WPDESK/Helper
 * @category    Class
 * @author        WP Desk
 */
if (!\defined('ABSPATH')) {
    exit;
}
if (!\class_exists('FSProVendor\\WPDesk_Tracker_Factory_Prefixed')) {
    /**
     * Can create and build tracker instance.
     *
     * Class WPDesk_Tracker_Factory
     */
    class WPDesk_Tracker_Factory_Prefixed
    {
        /**
         * Builds tracker instance.
         *
         * @param string $basename Plugin basename.
         *
         * @return WPDesk_Tracker built tracker.
         */
        private function build_tracker($basename)
        {
            $sender = new \FSProVendor\WPDesk_Tracker_Sender_Wordpress_To_WPDesk();
            $sender = new \FSProVendor\WPDesk_Tracker_Sender_Logged($sender);
            $tracker = new \FSProVendor\WPDesk_Tracker($basename, $sender);
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Gateways());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Identification());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Identification_Gdpr());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Jetpack());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_License_Emails());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Orders());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Orders_Country());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Orders_Month());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Plugins());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Products());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Products_Variations());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Server());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Settings());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Shipping_Classes());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Shipping_Methods());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Shipping_Methods_Zones());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Templates());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Theme());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_User_Agent());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Users());
            $tracker->add_data_provider(new \FSProVendor\WPDesk_Tracker_Data_Provider_Wordpress());
            $tracker->init_hooks();
            return $tracker;
        }
        /**
         * Creates tracker instance.
         *
         * @param string $basename Plugin basename.
         *
         * @return WPDesk_Tracker created tracker.
         */
        public function create_tracker($basename)
        {
            $tracker = $this->build_tracker($basename);
            \do_action('wpdesk_tracker_initialized', $this);
            return $tracker;
        }
    }
}