1: | <?php
|
2: | namespace Opencart\Catalog\Model\Design;
|
3: | |
4: | |
5: | |
6: | |
7: |
|
8: | class Translation extends \Opencart\System\Engine\Model {
|
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: |
|
16: | public function getTranslations(string $route): array {
|
17: | $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "translation` WHERE `store_id` = '" . (int)$this->config->get('config_store_id') . "' AND `language_id` = '" . (int)$this->config->get('config_language_id') . "' AND `route` = '" . $this->db->escape($route) . "'");
|
18: |
|
19: | return $query->rows;
|
20: | }
|
21: | }
|
22: | |