class ExpressionLanguage
Allows to compile and evaluate expressions written in your own DSL.
| __construct(ParserCacheInterface $cache = null, array $providers = array()) | ||
| string | compile(Expression|string $expression, array $names = array()) Compiles an expression source code. | |
| string | evaluate(Expression|string $expression, array $values = array()) Evaluate an expression. | |
| ParsedExpression | parse(Expression|string $expression, array $names) Parses an expression. | |
| register(string $name, callable $compiler, callable $evaluator) Registers a function. | ||
| addFunction(ExpressionFunction $function) | ||
| registerProvider(ExpressionFunctionProviderInterface $provider) |
Compiles an expression source code.
Evaluate an expression.
Parses an expression.
Registers a function.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/ExpressionLanguage/ExpressionLanguage.html