Beispiel #1
0
 private function getEmailHtml()
 {
     $templetor = new NgsTemplater();
     $templetor->smartyInitialize();
     $templetor->getSmarty()->assign('lm', TranslationManager::getInstance());
     return $templetor->getSmarty()->fetch(NGS()->getTemplateDir() . "/main/email/thanks.tpl");
 }
 public function service()
 {
     if (!isset(NGS()->args()->rowId)) {
         $this->addParam('status', 'error');
         $this->addParam('message', "Missing ID");
         return;
     }
     $rowId = intval(NGS()->args()->rowId);
     $phrase_en = NGS()->args()->phrase_en;
     $phrase_am = NGS()->args()->phrase_am;
     $phrase_ru = NGS()->args()->phrase_ru;
     TranslationManager::getInstance()->updateRow($rowId, $phrase_en, $phrase_am, $phrase_ru);
 }
Beispiel #3
0
 public function load()
 {
     $selectAll = TranslationManager::getInstance()->selectAll();
     $this->addParam('rows', $selectAll);
 }
Beispiel #4
0
 public function getPhrase($id, $lang = null)
 {
     return TranslationManager::getInstance()->getPhrase($id, $lang);
 }