public function DeployPlan::load in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 includes/DeployPlan.inc \DeployPlan::load()
Load the plan with its aggregator and processor.
Since the CTools Export API is declarative by nature, we can't rely on constructor injection and deploy_plan_create() as the only factory.
1 call to DeployPlan::load()
- DeployPlan::deploy in includes/
DeployPlan.inc - Deploy the plan.
File
- includes/
DeployPlan.inc, line 120 - Definition of a deployment plan and associated exceptions.
Class
- DeployPlan
- Class representing a deployment plan.
Code
public function load() {
$schema = drupal_get_schema('deploy_plans');
// Unserialize our serialized params.
foreach ($schema['fields'] as $field => $info) {
if (!empty($info['serialize']) && !is_array($this->{$field})) {
$this->{$field} = (array) unserialize($this->{$field});
}
}
if (!empty($this->aggregator_plugin)) {
$aggregator_config = $this->aggregator_config + array(
'debug' => $this->debug,
);
$this->aggregator = new $this->aggregator_plugin($this, $aggregator_config);
}
if (!empty($this->processor_plugin)) {
$processor_config = $this->processor_config + array(
'debug' => $this->debug,
);
$this->processor = new $this->processor_plugin($this->aggregator, $processor_config);
}
}