public function initPagesTranslation() { $translations = MailJetTranslate::getTranslationsByName('pages'); foreach ($translations as $key => $value) { if (isset($this->available_page[$key])) { $this->available_page[$key] = $value; } } return (bool) count($translations); }
/** * Will load the xml scheme database event requested with the default one */ public function initScheme() { $this->params += $this->getScheme($this->params['event']['value']); if ($this->params['event']['value'] == MailJetEvents::ALL_EVENTS_KEYS) { $this->default_scheme = $this->params; } else { $this->default_scheme = $this->getScheme(MailJetEvents::ALL_EVENTS_KEYS); } $translations = MailJetTranslate::getTranslationsByName('events'); foreach ($translations as $key => $value) { if (isset($this->params[$key])) { $this->params[$key]['title'] = $value; } if (isset($this->default_scheme[$key])) { $this->default_scheme[$key]['title'] = $value; } } }