Documentation

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
getCurrentLanguage()  : type
Get the site actual language
getOntologyJsData()  : array<string|int, mixed>
getRootTableData()  : void
Generate the root table data
isCustomClass()  : string

Properties

$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')

$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')

Methods

getOntologyJs()

public getOntologyJs(string $lang) : Response
Parameters
$lang : string
Return values
Response

getRootTable()

Root table view function

public getRootTable(string $lang) : Response
Parameters
$lang : string
Return values
Response

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

getCurrentLanguage()

Get the site actual language

private getCurrentLanguage() : type
Return values
type

getOntologyJsData()

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
Return values
string

        
On this page

Search results