PVar
class PVar extends Expression
The predefined variables for specifying conditional transformations.
Learn more: Specifying conditions
Methods
PVar 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.
Predefined variable width.
Predefined variable initialWidth.
Predefined variable height.
Predefined variable initialHeight.
Predefined variable aspectRatio.
Predefined variable initialAspectRatio.
Predefined variable trimmedAspectRatio.
Predefined variable pageCount.
Predefined variable duration.
Predefined variable initialDuration.
Predefined variable faceCount.
Predefined variable illustrationScore.
Predefined variable currentPage.
Predefined variable pageX.
Predefined variable pageY.
Predefined variable tags.
Predefined variable context.
Gets a list of predefined variables.
Gets a mapping of the friendly representations of the predefined variables.
Details
__construct(string $name)
PVar 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 PredefinedVariableTrait
width()
Predefined variable width.
static PredefinedVariableTrait
initialWidth()
Predefined variable initialWidth.
static PredefinedVariableTrait
height()
Predefined variable height.
static PredefinedVariableTrait
initialHeight()
Predefined variable initialHeight.
static PredefinedVariableTrait
aspectRatio()
Predefined variable aspectRatio.
static PredefinedVariableTrait
initialAspectRatio()
Predefined variable initialAspectRatio.
static PredefinedVariableTrait
trimmedAspectRatio()
Predefined variable trimmedAspectRatio.
static PredefinedVariableTrait
pageCount()
Predefined variable pageCount.
static PredefinedVariableTrait
duration()
Predefined variable duration.
static PredefinedVariableTrait
initialDuration()
Predefined variable initialDuration.
static PredefinedVariableTrait
faceCount()
Predefined variable faceCount.
static PredefinedVariableTrait
illustrationScore()
Predefined variable illustrationScore.
static PredefinedVariableTrait
currentPage()
Predefined variable currentPage.
static PredefinedVariableTrait
pageX()
Predefined variable pageX.
static PredefinedVariableTrait
pageY()
Predefined variable pageY.
static PredefinedVariableTrait
tags()
Predefined variable tags.
static PredefinedVariableTrait
context()
Predefined variable context.
static array
getPredefinedVariables()
Gets a list of predefined variables.
static array
getFriendlyRepresentations()
Gets a mapping of the friendly representations of the predefined variables.
Constants
WIDTH |
|
INITIAL_WIDTH |
|
HEIGHT |
|
INITIAL_HEIGHT |
|
ASPECT_RATIO |
|
INITIAL_ASPECT_RATIO |
|
TRIMMED_ASPECT_RATIO |
|
PAGE_COUNT |
|
DURATION |
|
INITIAL_DURATION |
|
FACE_COUNT |
|
ILLUSTRATION_SCORE |
|
CURRENT_PAGE |
|
PAGE_X |
|
PAGE_Y |
|
TAGS |
|
CONTEXT |
|