include/Expressions/Expression/AbstractExpression.php
\AbstractExpression
Package: SugarCRM
Base expression class
- Children
- \EnumExpression
- \GenericExpression
- \RelateExpression
- \DateExpression
- \NumericExpression
- \StringExpression
- \BooleanExpression
- \TimeExpression
- Api
Properties
$TYPE_MAP= 'array(
"number" => "NumericExpression",
"string" => "StringExpression",
"date" => "DateExpression",
"time" => "TimeExpression",
"boolean" => "BooleanExpression",
"enum" => "EnumExpression",
"relate" => "RelateExpression",
"generic" => "AbstractExpression",
)'
static
Default value
array(
"number" => "NumericExpression",
"string" => "StringExpression",
"date" => "DateExpression",
"time" => "TimeExpression",
"boolean" => "BooleanExpression",
"enum" => "EnumExpression",
"relate" => "RelateExpression",
"generic" => "AbstractExpression",
)
Details- Type
- n/a
Methods
AbstractExpression(
$params
=
null
)
:
void
Constructs an Expression object given the parameters.
Parameters
Name | Type | Description |
---|---|---|
$params |
getParamCount(
)
:
void
static
Returns the exact number of parameters needed which is set as infinite by default.
getParameterTypes(
)
:
void
staticabstract
Defines the required types of each of the individual parameters.
isProperType(
$variable, $type
)
:
void
Enforces the parameter types.
Parameters
Name | Type | Description |
---|---|---|
$variable | ||
$type |
toString(
)
:
void
Returns a string representation of this expression.
TODO: Make this an abstract method.