HumHub Documentation (unofficial)

PredefinedArray extends AbstractRetriever
in package

URI retrieved based on a predefined array of schemas

Tags
example

$retriever = new PredefinedArray(array( 'http://acme.com/schemas/person#' => '{ ... }', 'http://acme.com/schemas/address#' => '{ ... }', ))

$schema = $retriever->retrieve('http://acme.com/schemas/person#');

Table of Contents

Properties

$contentType  : string
Media content type
$schemas  : array<string|int, mixed>
Contains schemas as URI => JSON

Methods

__construct()  : mixed
Constructor
getContentType()  : string
Get media content type
retrieve()  : mixed
Retrieve a schema from the specified URI

Properties

$schemas

Contains schemas as URI => JSON

private array<string|int, mixed> $schemas

Methods

__construct()

Constructor

public __construct(array<string|int, mixed> $schemas[, string $contentType = Validator::SCHEMA_MEDIA_TYPE ]) : mixed
Parameters
$schemas : array<string|int, mixed>
$contentType : string = Validator::SCHEMA_MEDIA_TYPE

        
On this page

Search results