Lines Matching refs:where
193 $where = '1=1';
196 $where .= ' AND pid';
197 $where .= $this->useLike($this->pid) ? ' GLOB' : ' =';
198 $where .= ' ?';
203 $where .= ' AND pid';
204 $where .= ' IN(';
206 $where .= ' ?,';
209 $where = rtrim($where, ',') . ')';
213 $where .= ' AND tagger = ?';
218 $where .= ' AND ';
223 $where .= ' pid';
224 $where .= ' GLOB';
225 $where .= ' ?';
226 if (++$i < $nsCnt) $where .= ' OR';
232 $where .= ' AND ';
237 $where .= ' pid';
238 $where .= ' NOT GLOB';
239 $where .= ' ?';
240 if (++$i < $nsCnt) $where .= ' AND';
246 $where .= ' AND ';
251 $where .= ' CLEANTAG(tag)';
252 $where .= $this->useLike($tag) ? ' GLOB' : ' =';
253 $where .= ' CLEANTAG(?)';
254 if (++$i < $tagCnt) $where .= ' OR';
261 $where .= ' AND GETACCESSLEVEL(pid) >= ' . AUTH_READ;
264 return $where;