class VarsExtendedTestVars in Variable API 7
Same name and namespace in other branches
- 6.2 tests/vars_extended_test.module \VarsExtendedTestVars
- 6 tests/vars_extended_test.module \VarsExtendedTestVars
- 7.2 tests/vars_extended_test.module \VarsExtendedTestVars
@file
Module for testing the Variable API module.
Hierarchy
- class \Vars implements \ArrayAccess
- class \VarsExtendedTestVars
Expanded class hierarchy of VarsExtendedTestVars
1 string reference to 'VarsExtendedTestVars'
File
- tests/
vars_extended_test.module, line 9 - Module for testing the Variable API module.
View source
class VarsExtendedTestVars extends Vars {
public function __construct() {
parent::__construct('vars_extended_test');
}
public function getDefaults() {
return array(
'vars_extended_test_dynamic_first' => array(
'value' => array(
1.1,
),
'flags' => Vars::VARS_DYNAMIC,
),
'vars_extended_test_dynamic_second' => array(
'value' => 'aaaa',
'flags' => Vars::VARS_DYNAMIC,
),
'vars_extended_test_dynamic_third' => array(
'value' => 1111,
'flags' => Vars::VARS_DYNAMIC,
),
'vars_extended_test_dynamic_fourth' => array(
'value' => array(
'aaaaaaaa',
),
'flags' => Vars::VARS_DYNAMIC,
),
'vars_extended_test_static_first' => array(
'value' => 1.1,
'flags' => 0,
),
'vars_extended_test_static_second' => array(
'value' => 'aaaa',
'flags' => 0,
),
'vars_extended_test_static_third' => array(
'value' => 1111,
'flags' => 0,
),
);
}
}
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 | |||
VarsExtendedTestVars:: |
public | function |
Returns the default value for the variables used by the module. Overrides Vars:: |
|
VarsExtendedTestVars:: |
public | function |
Constructs a Vars object. Overrides Vars:: |