function spaces_controller::__construct in Spaces 7.3
Same name and namespace in other branches
- 6.3 plugins/spaces_controller.inc \spaces_controller::__construct()
- 7 plugins/spaces_controller.inc \spaces_controller::__construct()
File
- plugins/
spaces_controller.inc, line 15
Class
- spaces_controller
- Abstract base class for a spaces controller. Classes that extend spaces_controller must implement load_original_values().
Code
function __construct($controller, $space_type, $space_id) {
$this->controller = $controller;
$this->space_type = $space_type;
$this->space_id = $space_id;
// Stores actual values on the controller instance.
$this->values = array(
'original' => array(),
'preset' => array(),
'space' => array(),
);
// Stores boolean flags for whether values for a given environment
// have had at least 1 attempt to be loaded. Note that this may be
// set to TRUE even if no value exists for the given key.
$this->loaded = array(
'original' => array(),
'preset' => array(),
'space' => array(),
);
// Stores boolean flags for whether all values have been loaded for
// an environment.
$this->loaded_all = array(
'original' => FALSE,
'preset' => FALSE,
'space' => FALSE,
);
}