environment_context_condition.inc in Environment 6
File
plugins/environment_context_condition.inc
View source
<?php
class environment_context_condition extends context_condition {
function condition_values() {
return _environment_state_options_all();
}
function execute($environment) {
if ($this
->condition_used()) {
foreach ($environment as $workflow => $env) {
foreach ($this
->get_contexts($env) as $context) {
$this
->condition_met($context, $env);
}
foreach ($this
->get_contexts($workflow) as $context) {
$this
->condition_met($context, $workflow);
}
}
}
}
}