include/Expressions/Expression/Parser/Parser.php

Show: inherited
Table of Contents

\Parser

Package: SugarCRM

Expression parser

Api
 

Methods

methodpublicevaluate( string $expr,  $context = false ) : void
static

Evaluates an expression.

Parameters
Name Type Description
$expr string

the expression to evaluate

$context
methodpublicgetFieldsFromExpression(  $expr,  $fieldDefs = false ) : array
static

Parameters
Name Type Description
$expr
$fieldDefs
Returns
Type Description
array
Details
Static
 
methodprivategetFormatedValue(  $val,  $fieldName ) : void
static

Parameters
Name Type Description
$val
$fieldName
methodpublicreplaceVariables( string $expr, \Array/SugarBean $target ) : void
static

Parameters
Name Type Description
$expr string
$target \Array/SugarBean
Details
Deprecated
returns the expression with the variables replaced with the values in target.  
methodpublicthrowException(  $function,  $type,  $message ) : void
static

Throws a custom exception with a predefined prefix and message.

Parameters
Name Type Description
$function
$type
$message
methodpublictoConstant(  $expr ) : void
static

Takes in a string and returns a ConstantExpression if the string can be converted to a constant.

Parameters
Name Type Description
$expr
Documentation was generated by DocBlox 0.18.1.