Class Ansel_Search

Description

Ansel_Search:: Provides a generic interface for various types of image searches that are to be displayed in a paged results view.

$Horde: ansel/lib/Search.php,v 1.1.2.1 2009/01/06 15:22:28 jan Exp $

Copyright 2008-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

Located in /lib/Search.php (line 16)


	
			
Variable Summary
 string $_field
 array $_params
 string $_type
Method Summary
 void addFilter (array $filter)
 void count ()
 void factory (string $type, [array $params = array()])
 void getSlice (unknown_type $page, unknown_type $perpage)
 void load ()
 void save ()
Variables
string $_field = '' (line 30)

The field we are searching

array $_params = array() (line 37)

Parameters

string $_type = '' (line 23)

The type of search we are performing.

Methods
addFilter (line 94)

Add a search term

void addFilter (array $filter)
  • array $filter: value to filter.
count (line 101)

Get the total number of resources that match

void count ()
factory (line 45)

Create a concrete search instance.

void factory (string $type, [array $params = array()])
  • string $type: The type of search to perform.
  • array $params: Parameters for the concrete class.
getSlice (line 85)

retrieve a slice of the current search

void getSlice (unknown_type $page, unknown_type $perpage)
  • unknown_type $page
  • unknown_type $perpage
load (line 73)

Load any search terms in the session

void load ()
save (line 64)

Save the current search terms to the session

void save ()

Documentation generated on Sun, 30 Jan 2011 05:08:49 +0000 by phpDocumentor 1.4.3