include/Expressions/Expression/AbstractExpression.php

Show: inherited
Table of Contents

\AbstractExpression

Package: SugarCRM

Base expression class

Children
\EnumExpression
\GenericExpression
\RelateExpression
\DateExpression
\NumericExpression
\StringExpression
\BooleanExpression
\TimeExpression
Api
 

Properties

Propertypublic  $BOOLEAN_TYPE= '"boolean"'
static
Default value"boolean"Details
Type
n/a
Propertypublic  $DATE_TYPE= '"date"'
static
Default value"date"Details
Type
n/a
Propertypublic  $ENUM_TYPE= '"enum"'
static
Default value"enum"Details
Type
n/a
Propertypublic  $FALSE= '"false"'
static
Default value"false"Details
Type
n/a
Propertypublic  $GENERIC_TYPE= '"generic"'
static
Default value"generic"Details
Type
n/a
Propertypublic  $INFINITY= '-1'
static
Default value-1Details
Type
n/a
Propertypublic  $NUMERIC_TYPE= '"number"'
static
Default value"number"Details
Type
n/a
Propertypublic  $RELATE_TYPE= '"relate"'
static
Default value"relate"Details
Type
n/a
Propertypublic  $STRING_TYPE= '"string"'
static
Default value"string"Details
Type
n/a
Propertypublic  $TIME_TYPE= '"time"'
static
Default value"time"Details
Type
n/a
Propertypublic  $TRUE= '"true"'
static
Default value"true"Details
Type
n/a
Propertypublic  $TYPE_MAP= 'array( "number" => "NumericExpression", "string" => "StringExpression", "date" => "DateExpression", "time" => "TimeExpression", "boolean" => "BooleanExpression", "enum" => "EnumExpression", "relate" => "RelateExpression", "generic" => "AbstractExpression", )'
static
Default valuearray( "number" => "NumericExpression", "string" => "StringExpression", "date" => "DateExpression", "time" => "TimeExpression", "boolean" => "BooleanExpression", "enum" => "EnumExpression", "relate" => "RelateExpression", "generic" => "AbstractExpression", )Details
Type
n/a
Propertypublic  $params= ''
Details
Type
n/a

Methods

methodpublicAbstractExpression(  $params = null ) : void

Constructs an Expression object given the parameters.

Parameters
Name Type Description
$params
methodpublicevaluate( ) : void
abstract

Evaluates this expression and returns the resulting value.

methodpublicgetJSEvaluate( ) : void
staticabstract

Returns the JavaScript equivalent for the evaluate function.

methodpublicgetParamCount( ) : void
static

Returns the exact number of parameters needed which is set as infinite by default.

methodpublicgetParameterTypes( ) : void
staticabstract

Defines the required types of each of the individual parameters.

methodpublicgetParameters( ) : void

Returns the parameter list for this Expression.

methodpublicisProperType(  $variable,  $type ) : void

Enforces the parameter types.

Parameters
Name Type Description
$variable
$type
methodpublictoString( ) : void

Returns a string representation of this expression.

TODO: Make this an abstract method.

methodpublicvalidateParameters( ) : void

Validates the parameters and throws an Exception if invalid.

Documentation was generated by DocBlox 0.18.1.