ExpressionLanguage::parse()

ParsedExpression parse(Expression|string $expression, array $names) Parses an expression. Parameters Expression|string $expression The expression to parse array $names An array of valid names Return Value ParsedExpression A ParsedExpression instance

ExpressionLanguage::evaluate()

string evaluate(Expression|string $expression, array $values = array()) Evaluate an expression. Parameters Expression|string $expression The expression to compile array $values An array of values Return Value string The result of the evaluation of the expression

ExpressionLanguage::compile()

string compile(Expression|string $expression, array $names = array()) Compiles an expression source code. Parameters Expression|string $expression The expression to compile array $names An array of valid names Return Value string The compiled PHP source code

ExpressionLanguage::addFunction()

addFunction(ExpressionFunction $function) Parameters ExpressionFunction $function

ExpressionLanguage

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|stri

ExpressionLanguage

class ExpressionLanguage Allows to compile and evaluate expressions written in your own DSL. Methods __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. re

ExpressionLanguage

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|stri

ExpressionFunctionProviderInterface

interface ExpressionFunctionProviderInterface Methods ExpressionFunction[] getFunctions() Details ExpressionFunction[] getFunctions() Return Value ExpressionFunction[] An array of Function instances

ExpressionFunction::getName()

getName()

ExpressionFunction::getEvaluator()

getEvaluator()