first commit
This commit is contained in:
19
catalog/model/design/translation.php
Normal file
19
catalog/model/design/translation.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user