Connector
in package
implements
IConnector
Table of Contents
Interfaces
Properties
- $context : array<string|int, mixed>
- $semantizer : Semantizer
Methods
- __construct() : mixed
- export() : string
- getContext() : array<string|int, mixed>
- getFactory() : IFactory
- getFetchFunction() : Closure
- getSemantizer() : Semantizer
- import() : array<string|int, mixed>
- The data can be supplied directly as string, by passing a file path, or by passing a URL.
- setContext() : void
- setFactory() : void
- setFetchFunction() : void
- setPrefix() : void
Properties
$context
private
array<string|int, mixed>
$context
$semantizer
private
Semantizer
$semantizer
Methods
__construct()
public
__construct() : mixed
export()
public
export(array<string|int, mixed> $objects[, array<string|int, mixed> $context = null ]) : string
Parameters
- $objects : array<string|int, mixed>
- $context : array<string|int, mixed> = null
Return values
stringgetContext()
public
getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>getFactory()
public
getFactory() : IFactory
Return values
IFactorygetFetchFunction()
public
getFetchFunction() : Closure
Return values
ClosuregetSemantizer()
public
getSemantizer() : Semantizer
Return values
Semantizerimport()
The data can be supplied directly as string, by passing a file path, or by passing a URL.
public
import(string $data[, string $baseUri = null ]) : array<string|int, mixed>
Parameters
- $data : string
- $baseUri : string = null
Return values
array<string|int, mixed>setContext()
public
setContext(array<string|int, mixed> $context) : void
Parameters
- $context : array<string|int, mixed>
setFactory()
public
setFactory(IFactory $factory) : void
Parameters
- $factory : IFactory
setFetchFunction()
public
setFetchFunction(Closure $fetch) : void
Parameters
- $fetch : Closure
setPrefix()
public
setPrefix(string $prefix, string $uri) : void
Parameters
- $prefix : string
- $uri : string