/** * WPML_TM_Field_Content_Action constructor. * * @param WPML_Translation_Job_Factory $job_factory * @param int $job_id */ public function __construct(&$job_factory, $job_id) { parent::__construct($job_factory); if (!(is_int($job_id) && $job_id > 0)) { throw new InvalidArgumentException('Invalid job id provided, received: ' . serialize($job_id)); } $this->job_id = $job_id; }
/** * WPML_Pro_Translation constructor. * * @param WPML_Translation_Job_Factory $job_factory */ function __construct(&$job_factory) { parent::__construct($job_factory); global $iclTranslationManagement, $wpdb; $this->tmg =& $iclTranslationManagement; $this->xliff_reader_factory = new WPML_TM_Xliff_Reader_Factory($this->job_factory); $wpml_tm_records = new WPML_TM_Records($wpdb); $this->cms_id_helper = new WPML_TM_CMS_ID($wpml_tm_records, $job_factory); add_filter('xmlrpc_methods', array($this, 'custom_xmlrpc_methods')); add_action('post_submitbox_start', array($this, 'post_submitbox_start')); add_action('icl_ajx_custom_call', array($this, 'ajax_calls'), 10, 2); }
/** * WPML_TM_General_Xliff_Import constructor. * * @param WPML_Translation_Job_Factory $job_factory * @param WPML_TM_Xliff_Reader_Factory $xliff_reader_factory */ public function __construct(&$job_factory, &$xliff_reader_factory) { parent::__construct($job_factory); $this->xliff_reader_factory =& $xliff_reader_factory; }
/** * WPML_TM_xliff constructor. * * @param WPML_Translation_Job_Factory $job_factory * @param string $xliff_version */ public function __construct(&$job_factory, $xliff_version = TRANSLATION_PROXY_XLIFF_VERSION) { parent::__construct($job_factory); $this->xliff_version = $xliff_version; }