MetadataController
extends ArcheBaseController
in package
Description of ArcheBaseController
Table of Contents
Properties
- $config : Config
- $helper : mixed
- $model : mixed
- $ontology : Ontology
- $pdo : PDO
- $repoDb : RepoDb
- $schema : Schema
- $siteLang : mixed
Methods
- __construct() : mixed
- get3dUrl() : JsonResponse
- DOwnload the 3d Object file and return the url.
- getBreadcrumb() : JsonResponse
- Get the actual resource breadcrumb
- getExpertData() : JsonResponse
- Metadata view expert DT content
- getSearchCoordinates() : JsonResponse
- MAP search coorindates
- getTopCollections() : JsonResponse
- Provide the top collections, based on the count value
- getTopCollectionsDT() : JsonResponse
- Datatable top collections api endpoint
- 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
- checkTmpDirs() : mixed
- getCurrentLanguage() : type
- Get the site actual language
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
Methods
__construct()
public
__construct() : mixed
get3dUrl()
DOwnload the 3d Object file and return the url.
public
get3dUrl(string $identifier) : JsonResponse
Parameters
- $identifier : string
Return values
JsonResponsegetBreadcrumb()
Get the actual resource breadcrumb
public
getBreadcrumb(string $id[, string $lang = "en" ]) : JsonResponse
Parameters
- $id : string
- $lang : string = "en"
Return values
JsonResponsegetExpertData()
Metadata view expert DT content
public
getExpertData(string $id[, string $lang = "en" ]) : JsonResponse
Parameters
- $id : string
- $lang : string = "en"
Return values
JsonResponsegetSearchCoordinates()
MAP search coorindates
public
getSearchCoordinates([string $lang = "en" ]) : JsonResponse
Parameters
- $lang : string = "en"
Return values
JsonResponsegetTopCollections()
Provide the top collections, based on the count value
public
getTopCollections(int $count[, string $lang = "en" ]) : JsonResponse
Parameters
- $count : int
- $lang : string = "en"
Return values
JsonResponsegetTopCollectionsDT()
Datatable top collections api endpoint
public
getTopCollectionsDT(array<string|int, mixed> $searchProps[, string $lang = "en" ]) : JsonResponse
Parameters
- $searchProps : array<string|int, mixed>
- $lang : string = "en"
Return values
JsonResponsechangeAPILanguage()
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
checkTmpDirs()
private
checkTmpDirs() : mixed
getCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type