Documentation

InitUtil
in package

Description of InitUtil

Tags
author

zozlak

Table of Contents

Methods

getRepoOntology()  : Ontology}
Tries to initialized Repo and Ontology using a direct database connection with connection parameters read from the ARCHE_DB_CONN_STR env var.

Methods

getRepoOntology()

Tries to initialized Repo and Ontology using a direct database connection with connection parameters read from the ARCHE_DB_CONN_STR env var.

public static getRepoOntology(string $repositoryUrl[, string $ontologyCacheFile = '' ][, int $ontologyCacheTtl = 36000 ][, bool $forceRest = false ]) : Ontology}

If the direct database connection initiliazation fails, returns Repo and Ontology objects using the REST interface.

Parameters
$repositoryUrl : string
$ontologyCacheFile : string = ''
$ontologyCacheTtl : int = 36000
$forceRest : bool = false
Return values
Ontology}

        
On this page

Search results