Ekdant-Online-Store/catalog/model/design/translation.php
2024-08-06 18:06:00 +05:45

20 lines
597 B
PHP

<?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;
}
}