private function getLanguageVar($prefix, $id, $suffix = '') { if ($this->languageStatement === null) { $sql = "SELECT\tword_custom\n\t\t\t\tFROM\t" . $this->databasePrefix . "core_sys_lang_words\n\t\t\t\tWHERE\tlang_id = ?\n\t\t\t\t\tAND word_key = ?"; $this->languageStatement = $this->database->prepareStatement($sql, 1); } $this->languageStatement->execute(array($this->getDefaultLanguageID(), $prefix . '_' . $id . ($suffix ? '_' . $suffix : ''))); $row = $this->languageStatement->fetchArray(); if ($row !== false) { return $row['word_custom']; } return ''; }