protected function _set_properties() { $this->_text = $this->_validate->getProperty('text'); $this->_text_hash = SurStudioPluginTranslatorRevolutionLiteCommon::hashText($this->_text); $this->_from = $this->_validate->getProperty('from'); $this->_to = $this->_validate->getProperty('to'); if ($this->_validate->getProperty('type') == 'ma') { $this->_from = $this->_validate->adjustLanguage($this->_from, false); $this->_to = $this->_validate->adjustLanguage($this->_to, false); } $this->_ct = $this->_validate->getProperty('ct'); $this->_url = SurStudioPluginTranslatorRevolutionLiteCommon::getUrl($_SERVER); $this->_url_hash = empty($this->_url) ? false : SurStudioPluginTranslatorRevolutionLiteCommon::hashUrl($this->_url); $this->_text_translated = array_fill(0, count($this->_text), null); $this->_text_hash = SurStudioPluginTranslatorRevolutionLiteCommon::hashText($this->_text); $this->_new_words_url_cache = array(); $this->_new_words_global_cache = array(); }