Class PartAndValuesModule

Description

Search Modules generate forms for and collect/format the subitions of said forms for various Digital Repository search types.

  • version: $Id: PartAndValuesModule.class.php,v 1.7 2007/09/19 14:04:49 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /polyphony/main/library/RepositorySearchModules/modules/PartAndValuesModule.class.php (line 23)


	
			
Method Summary
object PartAndValuesModule (mixed $partStructFieldName, mixed $valueFieldName, string $fieldName)
string createSearchFields (object Repository $repository)
string createSearchForm (mixed $repository, string $action)
array getCurrentValues ()
mixed getSearchCriteria (object Repository $repository)
void init ()
void setCurrentValues (array $values)
Methods
Constructor PartAndValuesModule (line 33)

Constructor

  • since: 04/25/06
  • access: public
object PartAndValuesModule (mixed $partStructFieldName, mixed $valueFieldName, string $fieldName)
  • string $fieldName
createSearchFields (line 100)

Create the fields (without form tags) for searching

  • since: 4/26/06
  • access: public
string createSearchFields (object Repository $repository)
  • object Repository $repository
createSearchForm (line 79)

Create a form for searching.

  • since: 04/25/06
  • access: public
string createSearchForm (mixed $repository, string $action)
  • string $action: The destination on form submit.
getCurrentValues (line 242)

Get an array of the current values to be added to a url. The keys of the arrays are the field-names in the appropriate context.

  • since: 04/25/06
  • access: public
array getCurrentValues ()
getSearchCriteria (line 207)

Get the formatted search terms based on the submissions of the form

  • since: 04/25/06
  • access: public
mixed getSearchCriteria (object Repository $repository)
  • object Repository $repository
init (line 46)

Initialize this object

  • since: 5/15/06
  • access: public
void init ()
setCurrentValues (line 265)

Update the current values with data (maybe stored in the session for instance.

The keys of the arrays are the field-names in the appropriate context. This could have been originally fetched via getCurrentValues

  • since: 04/25/06
  • access: public
void setCurrentValues (array $values)
  • array $values

Documentation generated on Wed, 19 Sep 2007 10:25:28 -0400 by phpDocumentor 1.3.0RC3