|
|
|
File: /home/inri/public_html/daCode-HEAD/daCode/src/phplib/search.php3
daCode -
Search
Search
Class to implement a search fonction
|
private class Search
Class to implement a search fonction
daCode http://www.dacode.org/
src/phplib/search.php3
$Id: search.php3,v 1.69 2002/05/13 21:34:03 jbcombes Exp $
Depends: Config Db Utils
|
| |
|
|
|
|
|
Private Field Summary |
| object Db |
$dbDatabase abstraction layer |
| object Session |
$sessionSession handling |
| object Utils |
$utilsUtils package |
| object Html |
$htmlRendering package |
| string |
$keywordsKeywords to search. |
| string |
$topicTopic where to search |
| string |
$sectionSection where to search |
| string |
$commentsWhether comments shall be included in search. "on" if they shall. |
| string |
$authorSearch for a post by specified author |
| string |
$fromDate to start the search |
| string |
$toEnbd of time span |
|
Public Method Details |
Search |
|
public void Search( )
|
| |
Class constructor
|
| Returns |
void |
|
go_search |
|
public string go_search( )
|
| |
Performs a search
|
| Returns |
string error comment or results to display |
| Required global variables |
|
|
| See Also |
Search::display_results() |
|
adv_search_form |
|
public string adv_search_form( )
|
| |
Displays the advanced search form
|
| Returns |
string the form |
| Required global variables |
|
|
|
|
Private Method Details |
display_results |
|
private string display_results( integer $pos, integer $step )
|
| |
Displays reults
|
| Parameter |
|
| integer |
$pos |
|
|
of first result to display |
|
|
| integer |
$step |
|
|
number of the page of results |
|
| Returns |
string search results |
|
|
Private Field Details |
$db |
|
private object Db $db
>><<
Database abstraction layer
|
|
$session |
|
private object Session $session
>><<
Session handling
|
|
$utils |
|
private object Utils $utils
>><<
Utils package
|
|
$html |
|
private object Html $html
>><<
Rendering package
|
|
$keywords |
|
private string $keywords
>><<
Keywords to search.
|
|
$topic |
|
private string $topic
>><<
Topic where to search
|
|
$section |
|
private string $section
>><<
Section where to search
|
|
$comments |
|
private string $comments
>><<
Whether comments shall be included in search. "on" if they shall.
|
|
$author |
|
private string $author
>><<
Search for a post by specified author
|
|
$from |
|
private string $from
>><<
Date to start the search
|
|
$to |
|
private string $to
>><<
Enbd of time span
|
|
|
|
|
|
| PHPDoc 1.0beta |