SmartSearchController
extends ArcheBaseController
in package
Description of SmartSearchController
Tags
Table of Contents
Properties
- $config : Config
- $helper : mixed
- $model : mixed
- $ontology : Ontology
- $pdo : PDO
- $repoDb : RepoDb
- $schema : Schema
- $siteLang : mixed
- $baseUrl : mixed
- $context : mixed
- $preferredLang : mixed
- $reqFacets : mixed
- $requestHash : mixed
- $sConfig : mixed
- $searchInBinaries : mixed
- $searchPhrase : mixed
Methods
- __construct() : mixed
- autocomplete() : Response
- Search input autocomplete
- dateFacets() : Response
- Fetch the date facets - deprecated
- redirectOldDetailView() : mixed
- we have to redirect the old metadata url to the new one old: oeaw_detail new: metadata
- search() : Response
- The main search
- changeAPILanguage() : void
- If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
- cacheResults() : bool
- Cache the search results
- checkTmpDirs() : mixed
- getCachedData() : string
- get the existing cache
- getCurrentLanguage() : type
- Get the site actual language
- initialSearch() : Response
- The first load or after reset search, which provides only facets
- setBasicPropertys() : mixed
- setContext() : mixed
- updateSearchHistoryCookie() : mixed
Properties
$config
protected
Config
$config
$helper
protected
mixed
$helper
$model
protected
mixed
$model
$ontology
protected
Ontology
$ontology
$pdo
protected
PDO
$pdo
$repoDb
protected
RepoDb
$repoDb
$schema
protected
Schema
$schema
$siteLang
protected
mixed
$siteLang
$baseUrl
private
mixed
$baseUrl
$context
private
mixed
$context
= []
$preferredLang
private
mixed
$preferredLang
$reqFacets
private
mixed
$reqFacets
$requestHash
private
mixed
$requestHash
$sConfig
private
mixed
$sConfig
$searchInBinaries
private
mixed
$searchInBinaries
$searchPhrase
private
mixed
$searchPhrase
Methods
__construct()
public
__construct() : mixed
autocomplete()
Search input autocomplete
public
autocomplete(string $str) : Response
Parameters
- $str : string
Return values
ResponsedateFacets()
Fetch the date facets - deprecated
public
dateFacets() : Response
Return values
ResponseredirectOldDetailView()
we have to redirect the old metadata url to the new one old: oeaw_detail new: metadata
public
redirectOldDetailView(string $identifier) : mixed
Parameters
- $identifier : string
search()
The main search
public
search(array<string|int, mixed> $postParams) : Response
Parameters
- $postParams : array<string|int, mixed>
Return values
ResponsechangeAPILanguage()
If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
protected
changeAPILanguage(string $lang) : void
Parameters
- $lang : string
cacheResults()
Cache the search results
private
cacheResults(type $result) : bool
Parameters
- $result : type
Return values
boolcheckTmpDirs()
private
checkTmpDirs() : mixed
getCachedData()
get the existing cache
private
getCachedData() : string
Return values
stringgetCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type
Return values
typeinitialSearch()
The first load or after reset search, which provides only facets
private
initialSearch(array<string|int, mixed> $postParams) : Response
Parameters
- $postParams : array<string|int, mixed>
Return values
ResponsesetBasicPropertys()
private
setBasicPropertys(array<string|int, mixed> $postParams) : mixed
Parameters
- $postParams : array<string|int, mixed>
setContext()
private
setContext() : mixed
updateSearchHistoryCookie()
private
updateSearchHistoryCookie() : mixed