Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Evaluating an expression template through code
#1
Suppose I have some template like $(field : (Module) reffield) and I want to evaluate that in my code. How would I do that?
Reply
#2
This piece of code should do the trick

https://github.com/tsolucio/corebos/blob/master/modules/cbMap/processmap/ConditionExpression.php#L91-L95
https://github.com/tsolucio/corebos/blob/master/modules/com_vtiger_workflow/evaluateit.php#L46-L49

https://github.com/tsolucio/coreBOSTests/blob/master/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluaterTest.php#L292-L295

Let me know how it goes
Joe
TSolucio
Reply
#3
Cool, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)