OpenCart 🇺🇦

Схема

protected mixed getList ( )

Аргументы

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

Описание

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

Исходный код

$this->data['breadcrumbs'] = array();

$this->data['breadcrumbs'][] = array(
	'text'      => $this->language->get('text_home'),
	'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
	'separator' => false
);

$this->data['breadcrumbs'][] = array(
	'text'      => $this->language->get('heading_title'),
	'href'      => $this->url->link('catalog/profile', 'token=' . $this->session->data['token'], 'SSL'),       		
	'separator' => ' :: '
);

$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['button_insert'] = $this->language->get('button_insert');
$this->data['button_copy'] = $this->language->get('button_copy');
$this->data['button_delete'] = $this->language->get('button_delete');
$this->data['text_no_results'] = $this->language->get('text_no_results');

$this->data['column_name'] = $this->language->get('column_name');
$this->data['column_sort_order'] = $this->language->get('column_sort_order');
$this->data['column_action'] = $this->language->get('column_action');

$this->data['profiles'] = array();

$profiles = $this->model_catalog_profile->getProfiles();

foreach ($profiles as $profile) {
	$action = array();

	$action[] = array(
		'href' => $this->url->link('catalog/profile/update', 'token=' . $this->session->data['token'] . '&profile_id=' . $profile['profile_id'], 'SSL'),
		'name' => $this->language->get('text_edit'),
	);

	$this->data['profiles'][] = array(
		'profile_id' => $profile['profile_id'],
		'name' => $profile['name'],
		'sort_order' => $profile['sort_order'],
		'action' => $action,
	);
}

$this->data['insert'] = $this->url->link('catalog/profile/insert', 'token=' . $this->session->data['token'], 'SSL');
$this->data['copy'] = $this->url->link('catalog/profile/copy', 'token=' . $this->session->data['token'], 'SSL');
$this->data['delete'] = $this->url->link('catalog/profile/delete', 'token=' . $this->session->data['token'], 'SSL');

if (isset($this->error['warning'])) {
	$this->data['error_warning'] = $this->error['warning'];
} else {
	$this->data['error_warning'] = '';
}

if (isset($this->session->data['success'])) {
	$this->data['success'] = $this->session->data['success'];

	unset($this->session->data['success']);
} else {
	$this->data['success'] = '';
}

$this->data['pagination'] = '';

$this->template = 'catalog/profile_list.tpl';
$this->children = array(
	'common/header',
	'common/footer'
);

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