资 源 简 介
SUMMARY
parses any kind of SQL string
can be used to validate, parse, modify SQL strings via PHP objects
automated field value checking
can be a layer between PHP daos and database
STATUS
working draft
DEPENDENCIES
>=PHP5.2
TODO
testing
benchmark
speed optimalization
documentation
EXAMPLES
```
set("SELECT * FROM tbl WHERE foo = "var"");
$cg = new sql_cg("OR");
$cg-> f1 = "v1";
$valO = new vo_int(11);
$valO(16);
// or
$valO-> set(16);
// throws exception if the given value isn"t good for that field type
$cg-> f2 = $valO;
$cg-> addLogic("f3", "IN", array("1", "2"));
$cg-> addConditionString("f4 LIKE "%example%"");
$sq