function RulesDateInputEvaluator::evaluate
Overrides RulesDataInputEvaluator::evaluate().
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.
Overrides RulesDataInputEvaluator::evaluate
File
-
modules/
rules_core.eval.inc, line 85
Class
- RulesDateInputEvaluator
- A class implementing a rules input evaluator processing date input.
Code
public function evaluate($text, $options, RulesState $state) {
return self::gmstrtotime($text);
}