class VarsTestVars in Variable API 6
Same name and namespace in other branches
- 6.2 tests/vars_test.module \VarsTestVars
- 7.2 tests/vars_test.module \VarsTestVars
- 7 tests/vars_test.module \VarsTestVars
@file
Module for testing the Variable API module.
Hierarchy
- class \Vars implements \ArrayAccess
- class \VarsTestVars
Expanded class hierarchy of VarsTestVars
1 string reference to 'VarsTestVars'
File
- tests/
vars_test.module, line 9 - Module for testing the Variable API module.
View source
class VarsTestVars extends Vars {
public function __construct() {
parent::__construct('vars_test', array(
'sysVars' => array(
'menu_rebuild_needed' => FALSE,
),
));
}
public function getDefaults() {
return array(
'vars_test_first' => array(
'value' => 100,
),
'vars_test_second' => array(
'value' => 200,
),
'vars_test_third' => array(
'value' => 300,
),
'vars_test_fourth' => array(
'value' => array(
400,
),
),
'vars_test_fifth' => array(
'value' => array(
'abcdefghil',
),
),
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Vars:: |
protected | property | ||
Vars:: |
protected | property | ||
Vars:: |
protected | function | Returns the default values for the variable passed as argument. | |
Vars:: |
public static | function | Deletes the specified persistent variables. | |
Vars:: |
public static | function | Loads the default value for all the variables respecting some conditions. | |
Vars:: |
public | function | Implements ArrayAccess::offsetExists(). | |
Vars:: |
public | function | Implements ArrayAccess::offsetGet(). | |
Vars:: |
public | function | Implements ArrayAccess::offsetSet(). | |
Vars:: |
public | function | Implements ArrayAccess::offsetUnset(). | |
Vars:: |
public | function | Removes the default values contained in the table variable_default. | |
Vars:: |
public static | function | Renames persistent variables. | |
Vars:: |
public | function | Saves the default value for the variables defined from the module. | |
Vars:: |
public static | function | Resets one or all centrally stored static variable(s). | |
Vars:: |
public static | function | Central static variable storage. | |
Vars:: |
constant | The constants for the type of variable saved in the database. | ||
Vars:: |
constant | |||
VarsTestVars:: |
public | function |
Returns the default value for the variables used by the module. Overrides Vars:: |
|
VarsTestVars:: |
public | function |
Constructs a Vars object. Overrides Vars:: |