protected function space::get_controllers in Spaces 7.3
Same name and namespace in other branches
- 6.3 plugins/space.inc \space::get_controllers()
- 7 plugins/space.inc \space::get_controllers()
Instantiate controllers for this space.
1 call to space::get_controllers()
- space::__construct in plugins/
space.inc - Constructor.
File
- plugins/
space.inc, line 59
Class
- space
- Base class describing a space.
Code
protected function get_controllers() {
// Create instances of each controller.
if (!isset($this->controllers)) {
$this->controllers = new stdClass();
module_load_include('inc', 'spaces', 'spaces.overrides');
ctools_include('plugins');
$plugins = ctools_get_plugins('spaces', 'plugins');
foreach (spaces_controllers() as $c => $info) {
if (isset($plugins[$info['plugin']]) && ($class = ctools_plugin_get_class($plugins[$info['plugin']], 'handler'))) {
$this->controllers->{$c} = new $class($c, $this->type, $this->id);
}
}
}
}