/** * @param WPML_TM_Words_Count $wpml_tm_words_count * @param WPML_WP_API $wpml_wp_api */ function __construct(&$wpml_tm_words_count, &$wpml_wp_api) { parent::__construct(); $this->rows = array(); $this->wpml_wp_api =& $wpml_wp_api; $this->wpml_tm_words_count =& $wpml_tm_words_count; }
/** * WPML_Jobs_Pickup_Logger_UI constructor. * * @param WPML_Jobs_Fetch_Log_Settings $fetch_log_settings * @param WPML_WP_API $wpml_wp_api */ public function __construct(&$fetch_log_settings, &$wpml_wp_api) { $this->post_data_headers = array('original_view_url', 'original_edit_url', 'translation_view_url', 'translation_edit_url', 'translation_status'); $this->wpml_wp_api =& $wpml_wp_api; $is_url_twig_function = new Twig_SimpleFunction('is_url', array($this, 'is_url')); parent::__construct(array($is_url_twig_function)); $this->fetch_log_settings =& $fetch_log_settings; $advanced_mode_key = $this->fetch_log_settings->get_ui_key() . '-advanced-mode'; if (array_key_exists($advanced_mode_key, $_GET)) { $this->advanced_mode = (bool) $_GET[$advanced_mode_key]; } $clear_log_key = $this->fetch_log_settings->get_ui_key() . '-clear'; if (array_key_exists($clear_log_key, $_POST)) { delete_option('_WPML_TP_Pickup_Logger'); } $this->action_url = 'admin.php?page=' . WPML_TM_FOLDER . '/menu/main.php&sm=' . $this->fetch_log_settings->get_ui_key(); $this->td_style = 'font-size:10px; overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-all; word-break: break-word; -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; hyphens: auto;'; add_action('wp_loaded', array($this, 'export_csv_action')); }
/** * @param WPML_WP_API $wpml_wp_api */ function __construct(&$wpml_wp_api) { parent::__construct(); $this->wpml_wp_api =& $wpml_wp_api; add_action('wpml_tm_dashboard_promo', array($this, 'render_box_action')); }
public function get_view($template = null, $model = null) { return parent::get_view($template, $model); }