Project

General

Profile

Bug #57

changes to handleQueryAction

Added by Chad Berkley about 19 years ago. Updated over 17 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.

History

#1 Updated by Chad Berkley about 19 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().

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 57

Also available in: Atom PDF