Lines Matching refs:q
197 * @param string $q the query string
201 public function searchExtensions($q) argument
205 $query = $this->parseQuery($q);
233 * @param string $q
236 protected function parseQuery($q) argument
246 if (preg_match_all('/(^|\s)(tag:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
248 $q = str_replace($m[2], '', $q);
253 if (preg_match_all('/(^|\s)(authorid:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
255 $q = str_replace($m[2], '', $q);
260 if (preg_match_all('/(^|\s)(ext:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
262 $q = str_replace($m[2], '', $q);
267 if (preg_match_all('/(^|\s)(type:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
272 $q = str_replace($m[2], '', $q);
280 $parameters['q'] = trim($q);