CWIS Developer Documentation
|
Convenience class for QuickSearch responses, making it easy to share functions common to different types of QuickSearch objects. More...
Static Public Member Functions | |
static | SearchField (MetadataField $Field, $SearchString, array $IdExclusions=array(), array $ValueExclusions=array()) |
Search a field for values matching a specified search string. More... | |
static | HighlightSearchString ($SearchTerms, $LabelForFormatting) |
Highlight all instances of the search string in the result label. More... | |
Convenience class for QuickSearch responses, making it easy to share functions common to different types of QuickSearch objects.
Definition at line 14 of file QuickSearchHelper.php.
|
static |
Highlight all instances of the search string in the result label.
string | $SearchTerms | The string(s) to highlight, optionally array of strings |
string | $LabelForFormatting | The label in which to highlight the search string |
Definition at line 63 of file QuickSearchHelper.php.
References MetadataField\GetFactory().
|
static |
Search a field for values matching a specified search string.
MetadataField | $Field | Metadata field. |
string | $SearchString | Search string. |
array | $IdExclusions | Array of IDs for values to exclude. |
array | $ValueExclusions | Array of values to exclude. |
Definition at line 26 of file QuickSearchHelper.php.
References MetadataSchema\MDFTYPE_REFERENCE, MetadataSchema\MDFTYPE_USER, MetadataField\NumAjaxResults(), and MetadataField\Type().