function RulesDataInputEvaluator::evaluate
Apply the input evaluator.
Parameters
string $text: The text to evaluate.
array $options: A keyed array of settings and flags to control the processing. Supported options are:
- language: A language object to be used when processing.
- callback: A callback function that will be used to post-process replacements that might be incorporated, so they can be cleaned in a certain way.
- sanitize: A boolean flag indicating whether incorporated replacements should be sanitized.
RulesState $state: The rules evaluation state.
Return value
The evaluated text.
1 call to RulesDataInputEvaluator::evaluate()
- RulesDataInputEvaluator::process in includes/
rules.processor.inc - Overridden to generate evaluator $options and invoke evaluate().
5 methods override RulesDataInputEvaluator::evaluate()
- RulesDateInputEvaluator::evaluate in modules/
rules_core.eval.inc - Overrides RulesDataInputEvaluator::evaluate().
- RulesI18nStringEvaluator::evaluate in rules_i18n/
rules_i18n.rules.inc - Translate the value.
- RulesPHPEvaluator::evaluate in modules/
php.eval.inc - Evaluates PHP code contained in $text.
- RulesTokenEvaluator::evaluate in modules/
system.eval.inc - Evaluate tokens.
- RulesURIInputEvaluator::evaluate in modules/
rules_core.eval.inc - Overrides RulesDataInputEvaluator::evaluate().
File
-
includes/
rules.processor.inc, line 369
Class
- RulesDataInputEvaluator
- A base processor for use by input evaluators.
Code
public abstract function evaluate($text, $options, RulesState $state);