Lines Matching defs:q
146 * @param string $q the query string
149 public function search($q)
151 $query = $this->parseQuery($q);
180 * @param string $q
183 protected function parseQuery($q)
188 if (preg_match_all('/(^|\s)(tag:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
190 $q = str_replace($m[2], '', $q);
195 if (preg_match_all('/(^|\s)(authorid:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
197 $q = str_replace($m[2], '', $q);
202 if (preg_match_all('/(^|\s)(ext:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
204 $q = str_replace($m[2], '', $q);
209 if (preg_match_all('/(^|\s)(type:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
211 $q = str_replace($m[2], '', $q);
218 $parameters['q'] = trim($q);