/**
  * WPML_TM_Troubleshooting_Clear_TS constructor.
  *
  * @param WPML_WP_API $wpml_wp_api
  */
 public function __construct(&$wpml_wp_api)
 {
     parent::__construct($wpml_wp_api);
     add_action('init', array($this, 'load_action'));
     $this->add_ajax_action('wp_ajax_wpml_clear_ts', array($this, 'clear_ts_action'));
     $this->init();
 }
 /**
  * WPML_TM_Troubleshooting_Clear_TS constructor.
  *
  * @param SitePress                  $sitepress
  * @param WPML_Translation_Proxy_API $TranslationProxy
  * @param WPML_WP_API                $wpml_wp_api
  * @param wpdb                       $wpdb
  */
 public function __construct(&$sitepress, &$TranslationProxy, &$wpml_wp_api, &$wpdb)
 {
     parent::__construct($wpml_wp_api);
     $this->sitepress =& $sitepress;
     $this->TranslationProxy =& $TranslationProxy;
     $this->wpdb =& $wpdb;
     add_action('init', array($this, 'load_action'));
     $this->add_ajax_action('wp_ajax_wpml_reset_pro_trans_config', array($this, 'reset_pro_translation_configuration_action'));
     $this->init();
 }
 /**
  * @param WPML_TM_Words_Count            $wpml_tm_words_count
  * @param WPML_TM_Words_Count_Summary_UI $wpml_tm_words_count_summary
  * @param WPML_WP_API                    $wpml_wp_api
  */
 public function __construct(&$wpml_tm_words_count, &$wpml_tm_words_count_summary, &$wpml_wp_api)
 {
     parent::__construct($wpml_wp_api);
     $this->wpml_tm_words_count =& $wpml_tm_words_count;
     $this->wpml_tm_words_count_summary =& $wpml_tm_words_count_summary;
     if ($this->wpml_wp_api->is_ajax()) {
         $this->add_ajax_action('wp_ajax_wpml_words_count_summary', array($this, 'get_summary'));
         $this->init();
     }
 }
 /**
  * @param WPML_WP_API                  $wpml_wp_api
  * @param WPML_Translation_Job_Factory $job_factory
  */
 public function __construct(&$wpml_wp_api, &$job_factory)
 {
     parent::__construct($wpml_wp_api);
     $this->wpml_wp_api =& $wpml_wp_api;
     $this->job_factory =& $job_factory;
     $this->add_ajax_action('wp_ajax_wpml_cancel_open_local_translators_jobs', array($this, 'cancel_open_local_translators_jobs'));
     $this->add_ajax_action('wp_ajax_wpml_keep_open_local_translators_jobs', array($this, 'keep_open_local_translators_jobs'));
     $this->init();
     $this->ignore_local_jobs = get_transient($this->script_handle . '_ignore_local_jobs');
     if ($this->ignore_local_jobs == 1) {
         $this->ignore_local_jobs = true;
     } else {
         $this->ignore_local_jobs = false;
     }
 }