Documentation

MetaLookupConstant
in package
implements MetaLookupInterface

Returns a fixed set of metadata properties to every file.

Particularly useful for testing.

Tags
author

zozlak

Table of Contents

Interfaces

MetaLookupInterface
It is a common problem to couple binary data with their metadata.

Properties

$metadata  : DatasetNodeInterface

Methods

__construct()  : mixed
getMetadata()  : DatasetNodeInterface
Searches for metadata of a given file.

Properties

Methods

__construct()

public __construct(DatasetNodeInterface $res) : mixed
Parameters
$res : DatasetNodeInterface

getMetadata()

Searches for metadata of a given file.

public getMetadata(string $path, array<string|int, string|NamedNodeInterface$identifiers[, bool $require = false ]) : DatasetNodeInterface
Parameters
$path : string

path to the file (just for conformance with the interface, it is not used)

$identifiers : array<string|int, string|NamedNodeInterface>

file's identifiers (URIs) - just for conformance with the interface, they are not used

$require : bool = false

should error be thrown when no metadata was found (not used, this class always returns metadata)

Tags
throws
MetaLookupException
Return values
DatasetNodeInterface

fetched metadata


        
On this page

Search results