class ExpressionLanguage extends ExpressionLanguage
Adds some function to the default ExpressionLanguage.
Methods
__construct(ParserCacheInterface $cache = null, array $providers = array()) | ||
string | compile(Expression|string $expression, array $names = array()) Compiles an expression source code. | from ExpressionLanguage |
string | evaluate(Expression|string $expression, array $values = array()) Evaluate an expression. | from ExpressionLanguage |
ParsedExpression | parse(Expression|string $expression, array $names) Parses an expression. | from ExpressionLanguage |
register(string $name, callable $compiler, callable $evaluator) Registers a function. | from ExpressionLanguage | |
addFunction(ExpressionFunction $function) | from ExpressionLanguage | |
registerProvider(ExpressionFunctionProviderInterface $provider) | from ExpressionLanguage |
Details
__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.
Please login to continue.