VersionsController
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
- $newer : mixed
- $prev : mixed
- $resId : mixed
- $reverseArr : mixed
- $versions : mixed
Methods
- __construct() : mixed
- redirectOldDetailView() : mixed
- we have to redirect the old metadata url to the new one old: oeaw_detail new: metadata
- versionsList() : JsonResponse
- Get the resource versions List
- 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
- fetchChildElements() : mixed
- formatAvDate() : string
- getCurrentLanguage() : type
- Get the site actual language
- getVersions() : object
- traverseObject() : 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
$newer
private
mixed
$newer
= []
$prev
private
mixed
$prev
= []
$resId
private
mixed
$resId
$reverseArr
private
mixed
$reverseArr
= []
$versions
private
mixed
$versions
= []
Methods
__construct()
public
__construct() : mixed
redirectOldDetailView()
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
versionsList()
Get the resource versions List
public
versionsList(string $id[, string $lang = "en" ]) : JsonResponse
Parameters
- $id : string
- $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
fetchChildElements()
private
fetchChildElements(mixed $array) : mixed
Parameters
- $array : mixed
formatAvDate()
private
formatAvDate(string $dateString) : string
Parameters
- $dateString : string
Return values
stringgetCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type
Return values
typegetVersions()
private
getVersions(int $resId, string $prevVerProp, array<string|int, mixed> $context) : object
Parameters
- $resId : int
- $prevVerProp : string
- $context : array<string|int, mixed>
Return values
objecttraverseObject()
private
traverseObject(mixed $io, mixed &$outputArray, mixed $versionDirection) : mixed
Parameters
- $io : mixed
- $outputArray : mixed
- $versionDirection : mixed