function RulesDataInputEvaluator::prepareSetting

Overridden to prepare input evaluator processors.

The setting is expected to be the input value to be evaluated later on and is replaced by the suitable processor.

Overrides RulesDataProcessor::prepareSetting

1 call to RulesDataInputEvaluator::prepareSetting()
RulesPlugin::processSettings in includes/rules.core.inc
Processes the settings e.g. to prepare input evaluators.

File

includes/rules.processor.inc, line 291

Class

RulesDataInputEvaluator
A base processor for use by input evaluators.

Code

public static function prepareSetting(&$setting, $param_info, $var_info = array()) {
    $processor = NULL;
    foreach (self::evaluators($param_info, FALSE) as $name => $info) {
        $object = new $info['class']($setting, $param_info, $var_info, $processor);
        $processor = $object->getPreparedValue();
    }
    $setting = $processor;
}