X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=pq-gateway%2Fpq%2FQuery%2FWriter%2Fcriteria.md;h=3c89d1be3ed29593bc5d7bd792768e605a126489;hb=8ca926b19e417db747f046038909d818352b29a3;hp=0f27ae544fcfd84c1f5b18831b8ed8005a8536aa;hpb=8e466600d2aff5f9a4e3deb1ba72ac1047f29fcf;p=mdref%2Fmdref-pq-gateway diff --git a/pq-gateway/pq/Query/Writer/criteria.md b/pq-gateway/pq/Query/Writer/criteria.md index 0f27ae5..3c89d1b 100644 --- a/pq-gateway/pq/Query/Writer/criteria.md +++ b/pq-gateway/pq/Query/Writer/criteria.md @@ -2,6 +2,10 @@ Write nested AND/OR criteria to the query string. +The criteria can either be a simple accociative array, where the keys build the left hand operand plus the operator and the values make up the right hand operand and will be passed to pq\Query\Writer::param(). All concatenated together by AND clauses. + +Using multiple arrays, the above logic will be applied to each array and then concatenated by OR clauses. + ## Params: * array $criteria