int getAlbumIndex(
string
$curalbum
)
|
|
Returns the index of the album within the search albums
Parameters:
|
string |
$curalbum: |
The album sought |
array getAlbums(
[int
$page = 0]
)
|
|
Returns an array of album names found in the search.
If $page is not zero, it returns the current page's albums
Parameters:
|
int |
$page: |
the page number we are on |
object getImage(
int
$index
)
|
|
Returns a specific image
Parameters:
|
int |
$index: |
the index of the image desired |
int getImageIndex(
string
$album, string
$filename
)
|
|
Returns the index of this image in the search images
Parameters:
|
string |
$album: |
The folder name of the image |
|
string |
$filename: |
the filename of the image |
array getImages(
[int
$page = 0], [int
$firstPageCount = 0]
)
|
|
Returns an array of images found in the search It will return a "page's worth" if $page is non zero
Parameters:
|
int |
$page: |
the page number desired |
|
int |
$firstPageCount: |
count of images that go on the album/image transition page |
object getNextAlbum(
string
$curalbum
)
|
|
Returns the album following the current one
Parameters:
|
string |
$curalbum: |
the name of the current album |
Returns the number of albums found in a search
Returns the number of images found in the search
object getPrevAlbum(
string
$curalbum
)
|
|
Returns the album preceding the current one
Parameters:
|
string |
$curalbum: |
the name of the current album |
Returns an array of albums found in the search
Returns the search dates variable
Returns the search fields variable
Returns an array of image names found in the search
string getSearchParams(
)
|
|
creates a search query from the search words
string getSearchSQL(
string
$searchstring, string
$searchdate, string
$tbl, int
$fields
)
|
|
returns the sql string for a search
Parameters:
|
string |
$searchstring: |
the search target |
|
string |
$searchdate: |
the date target |
|
string |
$tbl: |
the database table to search |
|
int |
$fields: |
which fields to perform the search on |
Information Tags:
Parses a search string Items within quotations are treated as atomic
Returns an array of search elements
Returns the search words variable
Returns the set of fields from the url query/post
Information Tags:
array searchTags(
string
$searchstring, string
$tbl, array
$idlist
)
|
|
Searches the table for tags Returns an array of database records.
Parameters:
|
string |
$searchstring: |
|
|
string |
$tbl: |
set to 'albums' or 'images' |
|
array |
$idlist: |
list of ids seeding the search from the other fields |
void setSearchParams(
string
$paramstr
)
|
|
Parses and stores a search string
Parameters:
|
string |
$paramstr: |
the string containing the search words |