\acdhOeaw\util\metaLookupMetaLookupConstant

Simply adds same fixed set of metadata properties to every file.

Particularly useful for testing.

Summary

Methods
Properties
Constants
__construct()
getMetadata()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$metadata
N/A

Properties

$metadata

$metadata : 

Type

Methods

__construct()

__construct(\EasyRdf\Resource  $res) 

Parameters

\EasyRdf\Resource $res

getMetadata()

getMetadata(string  $path, \EasyRdf\Resource  $meta, boolean  $require = false) : \EasyRdf\Resource

Searches for metadata of a given file.

Parameters

string $path

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

\EasyRdf\Resource $meta

file's metadata

boolean $require

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

Throws

\acdhOeaw\util\metaLookup\MetaLookupException

Returns

\EasyRdf\Resource —

fetched metadata