class Config in ClamAV 8
Same name and namespace in other branches
- 2.x src/Config.php \Drupal\clamav\Config
Hierarchy
- class \Drupal\clamav\Config
Expanded class hierarchy of Config
7 files declare their use of Config
- clamav.install in ./
clamav.install - Install, update and uninstall functions for the clamav module.
- ClamAVConfigForm.php in src/
Form/ ClamAVConfigForm.php - DaemonTCPIP.php in src/
Scanner/ DaemonTCPIP.php - DaemonUnixSocket.php in src/
Scanner/ DaemonUnixSocket.php - Executable.php in src/
Scanner/ Executable.php
1 string reference to 'Config'
1 service uses Config
File
- src/
Config.php, line 6
Namespace
Drupal\clamavView source
class Config {
const MODE_DAEMON = 0;
const MODE_EXECUTABLE = 1;
const MODE_UNIX_SOCKET = 2;
const OUTAGE_BLOCK_UNCHECKED = 0;
const OUTAGE_ALLOW_UNCHECKED = 1;
// Drupal read-only config object.
protected $_config;
/**
* Constructor.
*
* Load the config from Drupal's CMI.
*/
public function __construct() {
$this->_config = \Drupal::config('clamav.settings');
}
// Global config options:
public function enabled() {
return $this->_config
->get('enabled');
}
public function scan_mode() {
return $this->_config
->get('scan_mode');
}
public function outage_action() {
return $this->_config
->get('outage_action');
}
public function verbosity() {
return $this->_config
->get('verbosity');
}
public function get($name) {
return $this->_config
->get($name);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Config:: |
protected | property | ||
Config:: |
public | function | ||
Config:: |
public | function | ||
Config:: |
constant | |||
Config:: |
constant | |||
Config:: |
constant | |||
Config:: |
public | function | ||
Config:: |
constant | |||
Config:: |
constant | |||
Config:: |
public | function | ||
Config:: |
public | function | ||
Config:: |
public | function | Constructor. |