Lines Matching refs:q
196 * @param string $q the query string
200 public function searchExtensions($q) argument
204 $query = $this->parseQuery($q);
232 * @param string $q
235 protected function parseQuery($q) argument
245 if (preg_match_all('/(^|\s)(tag:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
247 $q = str_replace($m[2], '', $q);
252 if (preg_match_all('/(^|\s)(authorid:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
254 $q = str_replace($m[2], '', $q);
259 if (preg_match_all('/(^|\s)(ext:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
261 $q = str_replace($m[2], '', $q);
266 if (preg_match_all('/(^|\s)(type:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
271 $q = str_replace($m[2], '', $q);
279 $parameters['q'] = trim($q);