OntologyController
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
- $actors_involved : mixed
- $coverage : mixed
- $curation : mixed
- $dates : mixed
- $ontologyJsHelper : mixed
- $relations_other_projects : mixed
- $right_access : mixed
- $rootTableData : mixed
- $rootTableHelper : mixed
Methods
- __construct() : mixed
- getOntologyJs() : Response
- getRootTable() : Response
- Root table view function
- 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
- getOntologyJsData() : array<string|int, mixed>
- getRootTableData() : void
- Generate the root table data
- isCustomClass() : string
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
$actors_involved
private
static mixed
$actors_involved
= array('hasPrincipalInvestigator', 'hasContact', 'hasCreator', 'hasAuthor', 'hasEditor', 'hasContributor', 'hasFunder', 'hasLicensor', 'hasMetadataCreator', 'hasDigitisingAgent')
$coverage
private
static mixed
$coverage
= array('hasRelatedDiscipline', 'hasCoverage', 'hasActor', 'hasSpatialCoverage', 'hasSubject', 'hasTemporalCoverage', 'hasTemporalCoverageIdentifier', 'hasCoverageEndDate', 'hasCoverageStartDate')
$curation
private
static mixed
$curation
= array('hasDepositor', 'hasAvailableDate', 'hasPid', 'hasNumberOfItems', 'hasBinarySize', 'hasFormat', 'hasLocationPath', 'hasLandingPage', 'hasCurator', 'hasHosting', 'hasSubmissionDate', 'hasAcceptedDate', 'hasTransferDate', 'hasTransferMethod', 'hasUpdateDate')
$dates
private
static mixed
$dates
= array('hasDate', 'hasStartDate', 'hasEndDate', 'hasCreatedDate', 'hasCreatedStartDate', 'hasCreatedEndDate', 'hasCollectedStartDate', 'hasCollectedEndDate', 'hasCreatedStartDateOriginal', 'hasCreatedEndDateOriginal')
$ontologyJsHelper
private
mixed
$ontologyJsHelper
$relations_other_projects
private
static mixed
$relations_other_projects
= array('relation', 'hasRelatedProject', 'hasRelatedCollection', 'continues', 'isContinuedBy', 'documents', 'isDocumentedBy', 'hasDerivedPublication', 'hasMetadata', 'isMetadataFor', 'hasSource', 'isSourceOf', 'isNewVersionOf', 'isPreviousVersionOf', 'hasPart', 'isPartOf', 'hasTitleImage', 'isTitleImageOf', 'hasVersionInfo')
$right_access
private
static mixed
$right_access
= array('hasOwner', 'hasRightsHolder', 'hasLicense', 'hasAccessRestriction', 'hasRestrictionRole', 'hasLicenseSummary', 'hasAccessRestrictionSummary')
$rootTableData
private
mixed
$rootTableData
= []
$rootTableHelper
private
mixed
$rootTableHelper
Methods
__construct()
public
__construct() : mixed
getOntologyJs()
public
getOntologyJs(string $lang) : Response
Parameters
- $lang : string
Return values
ResponsegetRootTable()
Root table view function
public
getRootTable(string $lang) : Response
Parameters
- $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
typegetOntologyJsData()
private
getOntologyJsData(string $lang) : array<string|int, mixed>
Parameters
- $lang : string
Return values
array<string|int, mixed>getRootTableData()
Generate the root table data
private
getRootTableData(string $lang) : void
Parameters
- $lang : string
isCustomClass()
private
isCustomClass(string $type) : string
Parameters
- $type : string