PHP код:
public void setConditions()
{
int countRange, countDatasource;
query qr;
QueryBuildRange qbr;
DictField dictField;
;
if (this.queryRun())
qr = this.queryRun().query();
else
break;
countDatasource = qr.dataSourceCount();
while ( countDatasource)
{
countRange = qr.datasourceNo(countDatasource).rangeCount();
while (countRange)
{
qbr = qr.datasourceNo(countDatasource).range(countRange);
if (qbr.value())
{
dictField = new DictField(qbr.table(),qbr.field());
conditions = conditions +" "+ DictField.label() +": "+ qbr.value();
}
countRange--;
}
countDatasource--;
}
}