phpDocumentor openbiz.bin
[ class tree: openbiz.bin ] [ index: openbiz.bin ] [ all elements ]

Procedural File: Expression.php

Source Location: /Expression.php

Page Details

PHPOpenBiz Framework

LICENSE

This source file is subject to the BSD license that is bundled with this package in the file LICENSE.txt.

Version:  $Id$
Link:  http://www.phpopenbiz.org/
License:  BSD
Copyright:  Copyright © 2005-2009, Rocky Swen
Classes
Class Description
Expression Expression - class Expression is the base class of evaluating simple expression
Functions
EvaluateExpression  [line 266]

mixed EvaluateExpression( string $expression, mixed $object  )

BizDataObj::EvaluateExpression() - evaluate simple expression

expression is combination of text, simple expressiones and field variables simple expression - {...} field variable - [field name] expression samples: text1{[field1]*10}text2{function1([field2],'a')}text3

Parameters:
string   $expression:  - simple expression supported by the openbiz

API Tags:
Return:  value


[ Top ]
eval_syntax  [line 327]

boolean eval_syntax( string $code  )

Check expression for syntax errors just before eval() function If the expression fails, do not eval the funciton. Return DEBUG error in logs

Parameters:
string   $code:  - expression text


[ Top ]
ReplaceMacrosExpr  [line 228]

string ReplaceMacrosExpr( string $expression  )

Replace macro expression replace macro @var:key to $userProfile[$key]

Parameters:
string   $expression: 


[ Top ]


Documentation generated on Tue, 22 Dec 2009 03:02:56 -0800 by phpDocumentor 1.3.0RC3