Lines Matching refs:where
196 $where = '1=1';
199 $where .= ' AND pid';
200 $where .= $this->useLike($this->pid) ? ' GLOB' : ' =';
201 $where .= ' ?';
206 $where .= ' AND pid';
207 $where .= ' IN(';
209 $where .= ' ?,';
212 $where = rtrim($where, ',') . ')';
216 $where .= ' AND tagger = ?';
221 $where .= ' AND ';
226 $where .= ' pid';
227 $where .= ' GLOB';
228 $where .= ' ?';
229 if (++$i < $nsCnt) $where .= ' OR';
235 $where .= ' AND ';
240 $where .= ' pid';
241 $where .= ' NOT GLOB';
242 $where .= ' ?';
243 if (++$i < $nsCnt) $where .= ' AND';
249 $where .= ' AND ';
254 $where .= ' CLEANTAG(tag)';
255 $where .= $this->useLike($tag) ? ' GLOB' : ' =';
256 $where .= ' CLEANTAG(?)';
257 if (++$i < $tagCnt) $where .= ' OR';
264 $where .= ' AND GETACCESSLEVEL(pid) >= ' . AUTH_READ;
267 return $where;