public function __construct()
 {
     parent::__construct();
     $this->id_customer = $this->get_from_get_post('id_customer');
     if (empty($this->id_customer)) {
         $this->id_customer = "Anonymous";
     }
     $this->id_translator = $this->get_from_get_post('id_translator');
     if (empty($this->id_translator)) {
         $this->id_translator = "Anonymous";
     }
     log::doLog(__CLASS__ . " - {$this->id_translator}");
     $this->private_customer = $this->get_from_get_post('private_customer');
     if (empty($this->private_customer)) {
         $this->private_customer = 0;
     }
     $this->private_translator = $this->get_from_get_post('private_translator');
     if (empty($this->private_translator)) {
         $this->private_translator = 0;
     }
     $this->source = $this->get_from_get_post('source');
     $this->target = $this->get_from_get_post('target');
     $this->source_lang = $this->get_from_get_post('source_lang');
     $this->target_lang = $this->get_from_get_post('target_lang');
 }
 public function __construct()
 {
     parent::__construct();
     $this->gold_offset = $this->get_from_get_post('gold_offset');
     $this->id = $this->get_from_get_post('id');
     log::doLog("POST: " . print_r($_POST, true));
 }
 public function __construct()
 {
     parent::__construct();
     $this->source_language = $this->get_from_get_post('source_language');
     $this->target_language = $this->get_from_get_post('target_language');
     $this->file_name = $this->get_from_get_post('file_name');
 }
 public function __construct()
 {
     parent::__construct();
     //        log::doLog("CASMACAT: resetDocumentController->__construct():");
     $this->jobId = $this->get_from_get_post("jobId");
     $this->fileId = $this->get_from_get_post("fileId");
     //        log::doLog("CASMACAT: resetDocumentController->__construct(): Initialized: jobId: '$this->jobId', fileId: '$this->fileId'");
 }
 public function __construct()
 {
     parent::__construct();
     $this->source_lang = $this->get_from_get_post('source_lang');
     $this->target_lang = $this->get_from_get_post('target_lang');
     $this->source = trim($this->get_from_get_post('seg'));
     $this->target = trim($this->get_from_get_post('tra'));
     $this->id_translator = trim($this->get_from_get_post('id_translator'));
 }
 public function __construct()
 {
     parent::__construct();
     //        log::doLog("CASMACAT: loadLogChunkController->__construct():");
     $this->jobId = $this->get_from_get_post("jobId");
     $this->fileId = $this->get_from_get_post("fileId");
     $this->startOffset = $this->get_from_get_post("startOffset");
     $this->endOffset = $this->get_from_get_post("endOffset");
     log::doLog("CASMACAT: loadLogChunkController->__construct(): Initialized: jobId: '{$this->jobId}', fileId: '{$this->fileId}', " . "startOffset: '{$this->startOffset}', endOffset: '{$this->endOffset}'");
 }
 public function __construct()
 {
     parent::__construct();
     $this->id_job = $this->get_from_get_post('id_job');
     $this->id_segment = $this->get_from_get_post('id_segment');
     $this->id_translator = $this->get_from_get_post('id_translator');
     $this->status = strtoupper($this->get_from_get_post('status'));
     $this->time_to_edit = $this->get_from_get_post('time_to_edit');
     $this->translation = $this->get_from_get_post('translation');
     $this->id_first_file = $this->get_from_get_post('id_first_file');
 }
 public function __construct()
 {
     parent::__construct();
     $this->id_segment = $this->get_from_get_post('id_segment');
     $this->id_job = $this->get_from_get_post('id_job');
     $this->num_results = $this->get_from_get_post('num_results');
     $this->text = trim($this->get_from_get_post('text'));
     $this->id_translator = $this->get_from_get_post('id_translator');
     if ($this->id_translator == 'unknown_translator') {
         $this->id_translator = "";
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->id_file = $this->get_from_get_post('fileid');
     $this->id_job = $this->get_from_get_post('jobid');
     //$this->file_name = $this->get_from_get_post('filename');
     //$this->src_lang = $this->get_from_get_post('srclang');
     log::doLog("POST: " . print_r($_POST, true));
     if (empty($this->id_job)) {
         $this->id_job = "Unknown";
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->id_segment = $this->get_from_get_post('id_segment');
     if (empty($this->id_segment)) {
         $this->id_segment = "Unknown";
     }
     $this->id_job = $this->get_from_get_post('id_job');
     if (empty($this->id_job)) {
         $this->id_job = "Unknown";
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->file_name = $this->get_from_get_post('file_name');
     // da cambiare
     $this->project_name = $this->get_from_get_post('project_name');
     $this->source_language = $this->get_from_get_post('source_language');
     $this->target_language = $this->get_from_get_post('target_language');
     $this->mt_engine = $this->get_from_get_post('mt_engine');
     // null è ammesso
     $this->tms_engine = $this->get_from_get_post('tms_engine');
     // se empty allora MyMemory
 }
 public function __construct()
 {
     parent::__construct();
     $this->startTime = Tools::getCurrentMillis();
     //        log::doLog("CASMACAT: saveLogChunkController->__construct():");
     $this->jobId = $this->get_from_get_post("jobId");
     $this->fileId = $this->get_from_get_post("fileId");
     $this->logList = json_decode($this->get_from_get_post("logList"));
     $this->jsonError = json_last_error();
     //        $this->logList = $this->get_from_get_post("logList");
     //        log::doLog("CASMACAT: saveLogChunkController->__construct(): Initialized: jobId: '$this->jobId', fileId: '$this->fileId', logList: '"
     //            . print_r($this->logList, true) . "'");
 }
 public function __construct()
 {
     parent::__construct();
     $this->jid = $this->get_from_get_post("jid");
     $this->password = $this->get_from_get_post("password");
     $this->step = $this->get_from_get_post("step");
     $this->ref_segment = $this->get_from_get_post("segment");
     $this->where = $this->get_from_get_post("where");
     //		    	log::doLog('LAST LOADED ID - MODIFIED: '.$this->last_loaded_id);
     //		if($this->central_segment) log::doLog('CENTRAL SEGMENT: '.$this->central_segment);
     // CASMACAT extension start
     if ($this->get_from_get_post("replay") == "true") {
         // replay mode
         log::doLog("CASMACAT: Running in replay mode.");
         $this->casIsReplaying = true;
         include_once INIT::$MODEL_ROOT . "/casQueries.php";
     }
     // CASMACAT extension end
 }
 public function __construct()
 {
     parent::__construct();
 }