Wojtek Jarzecki - 2012-10-17 11:00:10 -
In reply to message 1 from Teguh
AddRule is a function of the only once parameters.This parameters is a variable of type string. This string is parsed by the interpreter. Because it is a string that I do not understand why it can not be retrieved from the database?.
example:
$x->clearRules();
$x->addRule('IF project_funding.adequate OR project_staffing.small THEN risk.low');
example for database result :
$x->clearRules();
$database_result= //.... read string from database
$x->addRule($database_result);
// where $database_result= 'IF project_funding.adequate OR project_staffing.small THEN risk.low';
regards
AK