Lines Matching refs:query
489 $query = array();
493 … $query[strtolower($parameter[0])] = trim(str_replace('"', '', $parameter[1])); //removes quotes
495 if(array_key_exists("fields", $query)) { // separate field names into an array if it exists
496 …$fields = array_map("trim", explode(",", $query['fields'])); //todo: url encode fields he…
497 $query['fields'] = $fields;
499 return $query;
510 function decodeRecordURL($query) { argument
511 if(array_key_exists("record-url", $query)) {
513 … preg_match("/tbl\w+/i", $query["record-url"], $table); //extract table, view, record from url
514 preg_match("/viw\w+/i", $query["record-url"], $view);
515 preg_match("/rec\w+/i", $query["record-url"], $record_id);
517 $query['table'] = urlencode($table[0]); //url encode each part
518 $query['view'] = urlencode($view[0]);
519 $query['record-id'] = urlencode($record_id[0]);
520 return $query;