Searches for handsets based on supplied criteria returning a wurflResultSet object. Handsets can be searched via user agent or wurflID and either specific matches or only root level devices returned.
Example:
$oSearch = new wurflSearch();
$oSearch->setRootDevices(true);
$oSearch->setSearchField(wurflSearch::SEARCH_FIELD_USER_AGENT);
$oSearch->setKeywords('w880i');
$oResults = $oSearch->search();
foreach ( $oResults as $oDevice ) {
// do something with results...
}
public search()
Runs the search using the supplied data
public getRootDevices()
Returns $_RootDevices
public setRootDevices($inRootDevices)
Set $_RootDevices to $inRootDevices
public getSearchField()
Returns $_SearchField
public setSearchField($inSearchField)
Set $_SearchField to $inSearchField
Posted by: Scorpio Documentor (Writer), in Wurfl on 19 Nov 2009 @ 20:39
Tags: basesearch, basesearchinterface, wurfl, wurflsearch,
This
work is licenced under a
Creative Commons Licence.