OpenCart 🇺🇦

Схема

public mixed search ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

$this->load->model('openbay/amazonus_listing');
$this->load->language('openbay/amazonus_listing');

$error = '';

if (empty($this->request->post['search_string'])) {
	$error = $this->language->get('error_text_missing');
}

if ($error) {
	$response = array(
		'data' => '',
		'error' => $error,
	);
} else {
	$response = array(
		'data' => $this->model_openbay_amazonus_listing->search($this->request->post['search_string']),
		'error' => '',
	);
}

$this->response->setOutput(json_encode($response));