It is a very basic version of a query builder.
public static replaceClause ( |
||
$statement | The parsed query that has to be modified. | |
$list | The list of tokens. | |
$old | string | The type of the clause that should be replaced. This can be an entire clause. |
$new | string | The new clause. If this parameter is omitted it is considered to be equal with `$old`. |
$onlyType | boolean | Whether only the type of the clause should be replaced or the entire clause. |
return | string |