Zend Framework  1.12
Public Member Functions | List of all members
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters Class Reference

Public Member Functions

 setSearchValue ($searchValue)
 sets a new search word alias for setWhat
 
 setWhat ($searchValue)
 sets a new search word
 
 enableDidYouMeanWhat ()
 enable the did you mean what feature
 
 disableDidYouMeanWhat ()
 disable the did you mean what feature
 
 enableDidYouMeanWhere ()
 enable the did you mean where feature
 
 disableDidYouMeanWhere ()
 disable the did you mean where feature
 
 enableDidYouMeanRelated ()
 enable did you mean related, if true Kihno will be corrected to Kino
 
 disableDidYouMeanRelated ()
 diable did you mean related, if false Kihno will not be corrected to Kino
 
 setHits ($hits=10)
 set the max result hits for this search
 
 setCollapse ($value)
 If true, addresses will be collapsed for a single domain, common values are: ADDRESS_COMPANY – to collapse by address DOMAIN – to collapse by domain (same like collapse=true) false.
 
 setWhere ($where)
 set a specific search location examples: +47°54’53.10”, 11° 10’ 56.76” 47°54’53.10;11°10’56.76” 47.914750,11.182533 +47.914750 ; +11.1824 Darmstadt Berlin
 
 getWhere ()
 returns the defined search location (ie city, country)
 
 enableSpatial ()
 enable the spatial search feature
 
 disableSpatial ()
 disable the spatial search feature
 
 setRadius ($radius)
 sets spatial and the given radius for a circle search
 
 setRectangle ($lx, $ly, $rx, $ry)
 sets the values for a rectangle search lx = longitude left top ly = latitude left top rx = longitude right bottom ry = latitude right bottom
 
 setTransformGeoCode ()
 if set, the service returns the zipcode for the result
 
 setSort ($sort)
 sets the sort value possible values are: 'relevance' and 'distance' (only with spatial enabled)
 
 enablePhoneSeparation ()
 enable the separation of phone numbers
 
 disablePhoneSeparation ()
 disable the separation of phone numbers
 
 setFilterOnliner ()
 if this filter is set, only results with a website are returned
 
 setFilterOffliner ()
 if this filter is set, only results without a website are returned
 
 disableFilter ()
 removes the filter value
 
 setOpeningTime ($time=null)
 set a filter to get just results who are open at the given time possible values: now = open right now HH:MM = at the given time (ie 20:00)
 
 setCategory ($category=null)
 sets a category filter
 
 setSite ($site)
 sets the site filter ie: www.developergarden.com
 
 setDocumentType ($type)
 sets a filter to the given document type ie: pdf, html
 
 setName ($name)
 sets a filter for the company name ie: Deutsche Telekom
 
 setZipCode ($zip)
 sets a filter for the zip code
 
 setStreet ($street)
 sets a filter for the street
 
 setCounty ($county)
 sets a filter for the county
 
 setRawParameter ($key, $value)
 sets a raw parameter with the value
 
 getSearchParameters ()
 returns the parameters as an array
 

Member Function Documentation

disableDidYouMeanRelated ( )

diable did you mean related, if false Kihno will not be corrected to Kino

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
disableDidYouMeanWhat ( )

disable the did you mean what feature

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
disableDidYouMeanWhere ( )

disable the did you mean where feature

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
disableFilter ( )
disablePhoneSeparation ( )

disable the separation of phone numbers

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
disableSpatial ( )

disable the spatial search feature

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
enableDidYouMeanRelated ( )

enable did you mean related, if true Kihno will be corrected to Kino

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
enableDidYouMeanWhat ( )

enable the did you mean what feature

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
enableDidYouMeanWhere ( )

enable the did you mean where feature

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
enablePhoneSeparation ( )

enable the separation of phone numbers

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
enableSpatial ( )

enable the spatial search feature

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
getSearchParameters ( )

returns the parameters as an array

Returns
array
getWhere ( )

returns the defined search location (ie city, country)

Returns
string
setCategory (   $category = null)

sets a category filter

See Also
http://www.suchen.de/kategorie-katalog
Parameters
string$category
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setCollapse (   $value)

If true, addresses will be collapsed for a single domain, common values are: ADDRESS_COMPANY – to collapse by address DOMAIN – to collapse by domain (same like collapse=true) false.

Parameters
mixed$value
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setCounty (   $county)

sets a filter for the county

Parameters
string$county
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setDocumentType (   $type)

sets a filter to the given document type ie: pdf, html

Parameters
string$type
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setFilterOffliner ( )

if this filter is set, only results without a website are returned

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setFilterOnliner ( )

if this filter is set, only results with a website are returned

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setHits (   $hits = 10)

set the max result hits for this search

Parameters
integer$hits
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setName (   $name)

sets a filter for the company name ie: Deutsche Telekom

Parameters
string$name
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setOpeningTime (   $time = null)

set a filter to get just results who are open at the given time possible values: now = open right now HH:MM = at the given time (ie 20:00)

Parameters
string$time
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setRadius (   $radius)

sets spatial and the given radius for a circle search

Parameters
integer$radius
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setRawParameter (   $key,
  $value 
)

sets a raw parameter with the value

Parameters
string$key
mixed$value
Returns
unknown_type
setRectangle (   $lx,
  $ly,
  $rx,
  $ry 
)

sets the values for a rectangle search lx = longitude left top ly = latitude left top rx = longitude right bottom ry = latitude right bottom

Parameters
float$lx
float$ly
float$rx
float$ry
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setSearchValue (   $searchValue)

sets a new search word alias for setWhat

Parameters
string$searchValue
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setSite (   $site)

sets the site filter ie: www.developergarden.com

Parameters
string$site
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setSort (   $sort)

sets the sort value possible values are: 'relevance' and 'distance' (only with spatial enabled)

Parameters
string$sort
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setStreet (   $street)

sets a filter for the street

Parameters
string$street
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setTransformGeoCode ( )

if set, the service returns the zipcode for the result

Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setWhat (   $searchValue)

sets a new search word

Parameters
string$searchValue
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setWhere (   $where)

set a specific search location examples: +47°54’53.10”, 11° 10’ 56.76” 47°54’53.10;11°10’56.76” 47.914750,11.182533 +47.914750 ; +11.1824 Darmstadt Berlin

Parameters
string$where
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
setZipCode (   $zip)

sets a filter for the zip code

Parameters
string$zip
Returns
Zend_Service_DeveloperGarden_LocalSearch_SearchParameters