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
stringgetGettyNamespace()
Get Getty namespace by type.
public
static getGettyNamespace(string $type) : string
Parameters
- $type : string
Return values
stringgetGettySparqlEndpoint()
Get Getty SPARQL endpoint.
public
static getGettySparqlEndpoint() : string
Return values
stringgetOntology()
Get ontology namespace.
public
static getOntology(string $name) : string
Parameters
- $name : string
Return values
stringgetPaymentUrl()
Get payment gateway URL.
public
static getPaymentUrl(string $gateway[, bool $sandbox = false ]) : string
Parameters
- $gateway : string
- $sandbox : bool = false
Return values
stringgetRightsStatementUrl()
Get rights statement base URL.
public
static getRightsStatementUrl([string $type = 'rightsstatements_org' ]) : string
Parameters
- $type : string = 'rightsstatements_org'
Return values
stringgetSparqlPrefixes()
Get all namespaces for SPARQL prefixes.
public
static getSparqlPrefixes() : string
Return values
stringreload()
Reload configuration (useful for testing).
public
static reload() : void