public function Vars::__construct in Variable API 7
Same name and namespace in other branches
- 6.2 vars.module \Vars::__construct()
- 6 vars.module \Vars::__construct()
- 7.2 vars.classes.inc \Vars::__construct()
Constructs a Vars object.
Parameters
$module: The name of the module that implements the class.
$options: An array of options. The currently defined option is 'sysVars', used to define the default values for variables defined from modules not using Variable API.
2 calls to Vars::__construct()
- VarsExtendedTestVars::__construct in tests/
vars_extended_test.module - Constructs a Vars object.
- VarsTestVars::__construct in tests/
vars_test.module - Constructs a Vars object.
2 methods override Vars::__construct()
- VarsExtendedTestVars::__construct in tests/
vars_extended_test.module - Constructs a Vars object.
- VarsTestVars::__construct in tests/
vars_test.module - Constructs a Vars object.
File
- ./
vars.module, line 28 - Implement an API to handle persistent variables.
Class
- Vars
- @file Implement an API to handle persistent variables.
Code
public function __construct($module = '', array $options = array()) {
$this->module = $module;
if (!empty($options['sysVars'])) {
$this->sysVars = $options['sysVars'];
}
}