|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.sql.duck
datafaucet.system.sql.simplefiltergroup
datafaucet.system.sql.andorfilter
public class andorfilter
applies a collection of and/or keyword filters to a specified set of columns
| Constructor Summary | |
|---|---|
init(string columns, string searchphrase, [any table=''])
|
|
| Method Summary | |
|---|---|
private any |
addFilter(any filter, [any group='[runtime expression]'])
|
private any |
getFilter(string classpath, [any table='[runtime expression]'])
|
struct |
getKeywords()
|
private array |
getPhrases(string searchphrase, string separator)
|
boolean |
hasFilters()
|
private void |
makeFilters()
|
private any |
newFilter(string column, string content)
|
private any |
newGroup(string include)
|
private array |
preparePhrase(string searchphrase)
converts a user-provided search phrase into an array of arrays using provided keywords and removes any empty array elements |
any |
setProperties(struct collection)
ensures that properties are set in the correct order to split the search phrase properly |
private any |
set_columns(string propertyname, string propertyvalue)
|
private any |
set_searchphrase(string propertyname, string propertyvalue)
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string columns, string searchphrase, [any table=''])
columns - a comma delimited list of columns to filtersearchphrase - a search phrase containing and-or keywords in the current users preferred language or in english if localized keywords are unavailabletable - an object of type statement.cfc| Method Detail |
|---|
private any addFilter(any filter, [any group='[runtime expression]'])
filtergroupprivate any getFilter(string classpath, [any table='[runtime expression]'])
classpathtablepublic struct getKeywords()
private array getPhrases(string searchphrase, string separator)
searchphraseseparatorpublic boolean hasFilters()
hasFilters
in class
simplefiltergroup
private void makeFilters()
makeFilters
in class
simplefiltergroup
private any newFilter(string column, string content)
columncontentprivate any newGroup(string include)
includeprivate array preparePhrase(string searchphrase)
searchphrasepublic any setProperties(struct collection)
setProperties
in class
duck
collectionprivate any set_columns(string propertyname, string propertyvalue)
propertynamepropertyvalueprivate any set_searchphrase(string propertyname, string propertyvalue)
propertynamepropertyvalue
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||