Class SearchEngine
search class
public
|
|
public
number
|
|
public
array
|
|
public
array
|
|
protected
array
|
|
public
string
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
getSearchFieldsText( array $fields, string $param = '&searchfields=' )
Returns the "searchstring" element of a query parameter set |
public
|
#
setSearchParams( string $paramstr )
Parses and stores a search string NOTE!! this function assumes that the 'words' part of the list has been urlencoded!!! |
public
|
|
public
string
|
|
public
string
|
|
public
mixed
|
|
public
array
|
#
getSearchString( )
Parses a search string Items within quotations are treated as atomic AND, OR and NOT are converted to &, |, and ! |
public
string
|
#
codifySearchString( string $quote,… )
recodes the search words replacing the boolean operators with text versions |
public
integer
|
|
public
integer
|
|
protected
|
|
protected static
|
|
protected
array
|
|
public
string
|
#
searchDate( string $searchstring, string $searchdate, string $tbl, string $sorttype, string $sortdirection, $whichdate = 'date' )
returns the results of a date search |
protected
array
|
#
searchFieldsAndTags( array $searchstring, string $tbl, string $sorttype, string $sortdirection )
Searches the table for tags Returns an array of database records. |
public
array
|
|
public
boolean
|
#
excludeAlbum( string $albumname )
Checks if the album should be excluded from results Subalbums and their contents inherit the exclusion. |
public
integer
|
|
public
object
|
|
public
object
|
|
public
integer
|
|
public
array
|
|
public
integer
|
#
getImageIndex( string $album, string $filename )
Returns the index of this image in the search images |
public
object
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
#
getArticles( integer $articles_per_page = 0, boolean $published = NULL, boolean $ignorepagination = false, string $sorttype = NULL, string $sortdirection = NULL )
Returns a list of News Titlelinks found in the search |
public
|
|
protected
|
|
public static
|
|
public static
boolean
|
#
getSortdirBool( string $sortdirection = 'asc' )
Returns true if $sortdir is set to "DESC", otherwise false, for use with sorting functions |
public
|
$fieldList
|
#
NULL
|
public
integer
|
$page
|
#
1
|
public
|
$images
|
#
NULL
|
public
|
$albums
|
#
NULL
|
public
|
$articles
|
#
NULL
|
public
|
$pages
|
#
NULL
|
public
|
$pattern
|
|
public
|
$tagPattern
|
|
protected
|
$dynalbumname
|
#
NULL
|
protected
|
$album
|
#
NULL
|
protected
|
$words
|
|
protected
|
$dates
|
|
protected
string
|
$whichdates
|
#
'date'
|
protected
boolean
|
$search_no_albums
|
#
false
|
protected
boolean
|
$search_no_images
|
#
false
|
protected
boolean
|
$search_no_pages
|
#
false
|
protected
boolean
|
$search_no_news
|
#
false
|
protected
boolean
|
$search_unpublished
|
#
false
|
protected
|
$search_structure
|
|
protected
integer
|
$iteration
|
#
0
|
protected
|
$processed_search
|
#
NULL
|
protected
|
$album_list
|
#
NULL
|
protected
|
$album_list_exclude
|
#
null
|
protected
|
$category_list
|
#
NULL
|
protected
|
$searches
|
#
NULL
|
protected
array
|
$extraparams
|
#
array()
|
public
boolean
|
$loaded
|
#
false
|
public
string
|
$table
|
#
'albums'
|
public
boolean
|
$transient
|
#
true
|