Documentation

Connector
in package
implements IConnector

Table of Contents

Interfaces

IConnector

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

Methods

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
string

getContext()

public getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFactory()

public getFactory() : IFactory
Return values
IFactory

getFetchFunction()

public getFetchFunction() : Closure
Return values
Closure

getSemantizer()

public getSemantizer() : Semantizer
Return values
Semantizer

import()

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

        
On this page

Search results