OpenCart 🇺🇦

Класс Config { ... }

Название свойства Описание
Config::$data private mixed $data = array();
Тип Возвр. Описание
public mixed get ( $key )
Исходный код метода:
return (isset($this->data[$key]) ? $this->data[$key] : null);
public mixed set ( $key, $value )
Исходный код метода:
$this->data[$key] = $value;
public mixed has ( $key )
Исходный код метода:
return isset($this->data[$key]);
public mixed load ( $filename )
Исходный код метода:
$file = DIR_CONFIG . $filename . '.php';

if (file_exists($file)) {
	$_ = array();

	require($file);

	$this->data = array_merge($this->data, $_);
} else {
	trigger_error('Error: Could not load config ' . $filename . '!');
	exit();
}

Связанные классы:

Название класса Роль
Нет связанных классов

Комментарии