Project

General

Profile

Actions

Bug #57

closed

changes to handleQueryAction

Added by Chad Berkley over 23 years ago. Updated about 22 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
marine
Target version:
Start date:
08/09/2000
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
57

Description

split handleQueryAction into three seperate functions. One to create a query
(createQuery), another to create an squery (createSQuery) and another (runQuery)
to run the query and handle the results. Any of these functions can be easily
overwritten for customized results. handleQueryAction can call the appropriate
functions.

Actions #1

Updated by Chad Berkley over 23 years ago

I ended up breaking handleQueryAction into 4 different functions.
handleSQuery-handles structured queries
handleQuery-handles free text queries
runQuery-sends the created xml query to the DB for processing and returns the
results
transformDocument-takes the hashtable of results from runQuery and transforms
them to xml or html depending on the qformat param.
handlQueryAction is now just a stub from which these methods are called.

I also modified DBQuery to include a method for producing an xml structured
query from arbitrary CGI parameters. This method is called createSQuery().

Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 57

Actions

Also available in: Atom PDF