Heratio Framework API Reference

ExternalServiceHelper
in package

Helper for accessing external service configuration.

Table of Contents

Methods

get()  : mixed
Get configuration value by dot notation path.
getCdnUrl()  : string
Get CDN URL for a library.
getGettyNamespace()  : string
Get Getty namespace by type.
getGettySparqlEndpoint()  : string
Get Getty SPARQL endpoint.
getOntology()  : string
Get ontology namespace.
getPaymentUrl()  : string
Get payment gateway URL.
getRightsStatementUrl()  : string
Get rights statement base URL.
getSparqlPrefixes()  : string
Get all namespaces for SPARQL prefixes.
reload()  : void
Reload configuration (useful for testing).

Methods

get()

Get configuration value by dot notation path.

public static get(string $path[, mixed $default = null ]) : mixed
Parameters
$path : string
$default : mixed = null

getCdnUrl()

Get CDN URL for a library.

public static getCdnUrl(string $library) : string
Parameters
$library : string
Return values
string

getGettyNamespace()

Get Getty namespace by type.

public static getGettyNamespace(string $type) : string
Parameters
$type : string
Return values
string

getGettySparqlEndpoint()

Get Getty SPARQL endpoint.

public static getGettySparqlEndpoint() : string
Return values
string

getOntology()

Get ontology namespace.

public static getOntology(string $name) : string
Parameters
$name : string
Return values
string

getPaymentUrl()

Get payment gateway URL.

public static getPaymentUrl(string $gateway[, bool $sandbox = false ]) : string
Parameters
$gateway : string
$sandbox : bool = false
Return values
string

getRightsStatementUrl()

Get rights statement base URL.

public static getRightsStatementUrl([string $type = 'rightsstatements_org' ]) : string
Parameters
$type : string = 'rightsstatements_org'
Return values
string

getSparqlPrefixes()

Get all namespaces for SPARQL prefixes.

public static getSparqlPrefixes() : string
Return values
string

        
On this page

Search results