CWIS Developer Documentation
Public Member Functions | List of all members
SearchParameterSetEditingUI Class Reference

Class to create a user interface for editing SearchParameterSets. More...

Public Member Functions

 __construct ($FormFieldName, $SearchParams=NULL)
 Create a UI for specifing edits to SearchParameterSets. More...
 
 DisplayAsTable ($TableId=NULL, $TableStyle=NULL)
 Display editing form elements enclosed in a. More...
 
 DisplayAsRows ()
 Display the table rows for the editing form, without the surrounding. More...
 
 GetValuesFromFormData ()
 Extract values from a dynamics field edit/modification form. More...
 
 SearchParameters ($SearchParams=NULL)
 Get/Set search parameters. More...
 

Detailed Description

Class to create a user interface for editing SearchParameterSets.

Definition at line 13 of file SearchParameterSetEditingUI.php.

Constructor & Destructor Documentation

SearchParameterSetEditingUI::__construct (   $FormFieldName,
  $SearchParams = NULL 
)

Create a UI for specifing edits to SearchParameterSets.

Parameters
string$FormFieldNameHTML 'name' to use for <input> elements created by the UI. If this UI is incorporated into a form containing other input elements, they must have names that differ from this one.
SearchParameterSet$SearchParamsSearchParameterSet to display (OPTIONAL, uses an empty set if unspecified)

Definition at line 24 of file SearchParameterSetEditingUI.php.

References SPTSearchEngine\ConvertToDisplayParameters(), MetadataSchema\GetAllSchemas(), and MetadataSchema\MDFORDER_ALPHABETICAL.

Member Function Documentation

SearchParameterSetEditingUI::DisplayAsRows ( )

Display the table rows for the editing form, without the surrounding.

.

Definition at line 80 of file SearchParameterSetEditingUI.php.

Referenced by DisplayAsTable().

Here is the caller graph for this function:

SearchParameterSetEditingUI::DisplayAsTable (   $TableId = NULL,
  $TableStyle = NULL 
)

Display editing form elements enclosed in a.

Note that it still must be wrapped in a <form> that has a submit button.

Parameters
string$TableIdHTML identifier to use (OPTIONAL, default NULL)
string$TableStyleCSS class to attach for this table (OPTIONAL, default NULL)

Definition at line 67 of file SearchParameterSetEditingUI.php.

References DisplayAsRows().

SearchParameterSetEditingUI::GetValuesFromFormData ( )
SearchParameterSetEditingUI::SearchParameters (   $SearchParams = NULL)

Get/Set search parameters.

Parameters
SearchParameterSet | null$SearchParamsNew setting (OPTIONAL)
Returns
Current SearchParameterSet

Definition at line 368 of file SearchParameterSetEditingUI.php.

References MetadataSchema\MDFTYPE_FLAG, MetadataSchema\MDFTYPE_OPTION, and MetadataSchema\SCHEMAID_DEFAULT.


The documentation for this class was generated from the following file: