Documentation

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
$apiHelper  : mixed
$newer  : mixed
$prev  : mixed
$resId  : mixed
$reverseArr  : mixed
$versions  : mixed

Methods

__construct()  : mixed
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
fetchChildElements()  : mixed
formatAvDate()  : string
getCurrentLanguage()  : type
Get the site actual language
getVersions()  : object
traverseObject()  : mixed

Properties

Methods

versionsList()

Get the resource versions List

public versionsList(string $id[, string $lang = "en" ]) : JsonResponse
Parameters
$id : string
$lang : string = "en"
Return values
JsonResponse

changeAPILanguage()

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

fetchChildElements()

private fetchChildElements(mixed $array) : mixed
Parameters
$array : mixed

formatAvDate()

private formatAvDate(string $dateString) : string
Parameters
$dateString : string
Return values
string

getCurrentLanguage()

Get the site actual language

private getCurrentLanguage() : type
Return values
type

getVersions()

private getVersions(int $resId, string $prevVerProp, array<string|int, mixed> $context) : object
Parameters
$resId : int
$prevVerProp : string
$context : array<string|int, mixed>
Return values
object

traverseObject()

private traverseObject(mixed $io, mixed &$outputArray, mixed $versionDirection) : mixed
Parameters
$io : mixed
$outputArray : mixed
$versionDirection : mixed

        
On this page

Search results