UVal
class UVal extends Expression
Defines the supported operators for arithmetic expressions.
Learn more: Arithmetic expressions
Methods
ExpressionComponent constructor.
Serializes to string.
Serializes to JSON.
Add.
Subtract.
Multiply.
Divide.
Modulo.
Equals.
Does not equal.
Less than.
Greater than.
Less than or equals.
Greater than or equals.
Is in (a list of strings).
Is not in (a list of strings).
Logical AND operator
Logical OR operator
Creates an instance of Expression from a raw string.
The integer value expression component.
The float value expression component.
The numeric value expression component.
The string value expression component.
The string array expression component.
The asset reference expression component.
The context key reference expression component.
The structured metadata key reference expression component.
Named constructor.
Details
__construct($exprUserVariableName)
ExpressionComponent constructor.
string
__toString()
Serializes to string.
mixed
jsonSerialize()
Serializes to JSON.
ExpressionOperator
add()
Add.
ExpressionOperator
subtract()
Subtract.
ExpressionOperator
multiply()
Multiply.
ExpressionOperator
divide()
Divide.
ExpressionOperator
modulo()
Modulo.
ExpressionOperator
equal()
Equals.
ExpressionOperator
notEqual()
Does not equal.
ExpressionOperator
lessThan()
Less than.
ExpressionOperator
greaterThan()
Greater than.
ExpressionOperator
lessThanOrEqual()
Less than or equals.
ExpressionOperator
greaterThanOrEqual()
Greater than or equals.
ExpressionOperator
in()
Is in (a list of strings).
ExpressionOperator
notIn()
Is not in (a list of strings).
ExpressionOperator
and_()
Logical AND operator
'&&'
ExpressionOperator
or_()
Logical OR operator
'||'
static Expression
expression(string $expression)
Creates an instance of Expression from a raw string.
static Expression
int(int $value)
The integer value expression component.
static UVal
float(float $value)
The float value expression component.
static UVal
numeric(mixed $value)
The numeric value expression component.
static UVal
string(string $value)
The string value expression component.
static UVal
stringArray(array $array)
The string array expression component.
static UVal
assetReference(string $publicId)
The asset reference expression component.
static UVal
context(string $contextKey)
The context key reference expression component.
static UVal
metadata(string $metadataKey)
The structured metadata key reference expression component.
static UVal
uVal(mixed $value)
Named constructor.
Constants
STRING_MARKER |
|
STRING_ARR_DELIM |
|