InverseDataController
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
- contributedDT() : Response
- Persons contributed to data
- getCollectionConceptDT() : Response
- ContentScheme data DT
- getPublicationsDT() : Response
- The publications data table datasource
- getRprDT() : Response
- Get Related Collections and Resources
- getSpatialDT() : Response
- Place inverse table data
- hasMembersDT() : Response
- involvedDT() : Response
- Organisations involved in data
- isPartOfDT() : Response
- relatedDT() : Response
- 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
- getGeneralInverseByProperty() : Response|JsonResponse
- Create the general inverse property table data
- getInverse() : array<string|int, 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
Methods
__construct()
public
__construct() : mixed
contributedDT()
Persons contributed to data
public
contributedDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponsegetCollectionConceptDT()
ContentScheme data DT
public
getCollectionConceptDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponsegetPublicationsDT()
The publications data table datasource
public
getPublicationsDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponsegetRprDT()
Get Related Collections and Resources
public
getRprDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponsegetSpatialDT()
Place inverse table data
public
getSpatialDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponsehasMembersDT()
public
hasMembersDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponseinvolvedDT()
Organisations involved in data
public
involvedDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponseisPartOfDT()
public
isPartOfDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
Return values
ResponserelatedDT()
public
relatedDT(string $id, array<string|int, mixed> $searchProps, string $lang) : Response
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $lang : string
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
checkTmpDirs()
private
checkTmpDirs() : mixed
getCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type
Return values
typegetGeneralInverseByProperty()
Create the general inverse property table data
private
getGeneralInverseByProperty(string $id, array<string|int, mixed> $searchProps, array<string|int, mixed> $property, string $lang) : Response|JsonResponse
Parameters
- $id : string
- $searchProps : array<string|int, mixed>
- $property : array<string|int, mixed>
- $lang : string
Return values
Response|JsonResponsegetInverse()
private
getInverse(int $resId, array<string|int, mixed> $resContext[, array<string|int, mixed> $relContext = [] ][, SearchConfig|null $searchCfg = null ][, string|array<string|int, mixed>|null $properties = null ][, string $searchPhrase = '' ][, array<string|int, mixed> $searchTerms = [] ]) : array<string|int, mixed>
Parameters
- $resId : int
- $resContext : array<string|int, mixed>
- $relContext : array<string|int, mixed> = []
- $searchCfg : SearchConfig|null = null
- $properties : string|array<string|int, mixed>|null = null
- $searchPhrase : string = ''
- $searchTerms : array<string|int, mixed> = []