1: | <?php
2: | namespace Opencart\Catalog\Model\Account;
3: | /**
4: | * Class Search
5: | *
6: | * @package Opencart\Catalog\Model\Account
7: | */
8: | class Search extends \Opencart\System\Engine\Model {
9: | /**
10: | * Add Search
11: | *
12: | * @param array<string, mixed> $data
13: | *
14: | * @return void
15: | */
16: | public function addSearch(array $data): void {
17: | $this->db->query("INSERT INTO `" . DB_PREFIX . "customer_search` SET `store_id` = '" . (int)$this->config->get('config_store_id') . "', `language_id` = '" . (int)$this->config->get('config_language_id') . "', `customer_id` = '" . (int)$data['customer_id'] . "', `keyword` = '" . $this->db->escape($data['keyword']) . "', `category_id` = '" . (int)$data['category_id'] . "', `sub_category` = '" . (int)$data['sub_category'] . "', `description` = '" . (int)$data['description'] . "', `products` = '" . (int)$data['products'] . "', `ip` = '" . $this->db->escape($data['ip']) . "', `date_added` = NOW()");
18: | }
19: | }
20: |

OpenCart API API documentation generated by ApiGen dev-master