Ekdant-Online-Store/catalog/model/design/translation.php

20 lines
597 B
PHP
Raw Permalink Normal View History

2024-08-06 12:21:00 +00:00
<?php
namespace Opencart\Catalog\Model\Design;
/**
* Class Translation
*
* @package Opencart\Catalog\Model\Design
*/
class Translation extends \Opencart\System\Engine\Model {
/**
* @param string $route
*
* @return array
*/
public function getTranslations(string $route): array {
$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) . "'");
return $query->rows;
}
}