MetadataObject
extends MainObject
in package
Description of MetadataObject
Tags
Table of Contents
Properties
- $model : mixed
- $repo : mixed
- $repodb : mixed
- $result : mixed
- $str : mixed
- $data : mixed
- $lang : mixed
- $properties : mixed
- $type : mixed
Methods
- __construct() : mixed
- getData() : array<string|int, mixed>
- init() : array<string|int, mixed>
- createModel() : void
- formatView() : array<string|int, mixed>
- addNamespaceToType() : void
- change the type to the acdh format
- checkCardinality() : string
- Check the property cardinalities
- createHeader() : void
- Create the response header
- creatMetadataObj() : mixed
- Create properties obj with values from the metadata api request
- formatMetadataView() : void
- Format the data for the metadata api request
- initData() : bool
- Init the properties
- processData() : array<string|int, mixed>
- load and process the model data
- setUpMaxCardinality() : void
- setUpMinCardinality() : void
- setUpPropertyValue() : string
- Set up the response property values
- setUpRange() : void
- Set up the range value
Properties
$model
protected
mixed
$model
$repo
protected
mixed
$repo
$repodb
protected
mixed
$repodb
$result
protected
mixed
$result
= array()
$str
protected
mixed
$str
= ""
$data
private
mixed
$data
= array()
$lang
private
mixed
$lang
$properties
private
mixed
$properties
$type
private
mixed
$type
Methods
__construct()
public
__construct(string $type, string $lang) : mixed
Parameters
- $type : string
- $lang : string
getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>init()
public
init() : array<string|int, mixed>
Return values
array<string|int, mixed>createModel()
protected
createModel() : void
formatView()
protected
formatView(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>addNamespaceToType()
change the type to the acdh format
private
addNamespaceToType() : void
checkCardinality()
Check the property cardinalities
private
checkCardinality(string $prop, object $obj) : string
Parameters
- $prop : string
- $obj : object
Return values
stringcreateHeader()
Create the response header
private
createHeader() : void
creatMetadataObj()
Create properties obj with values from the metadata api request
private
creatMetadataObj(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
formatMetadataView()
Format the data for the metadata api request
private
formatMetadataView() : void
initData()
Init the properties
private
initData(array<string|int, mixed> $data) : bool
Parameters
- $data : array<string|int, mixed>
Return values
boolprocessData()
load and process the model data
private
processData(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>setUpMaxCardinality()
private
setUpMaxCardinality(object $obj, string $prop) : void
Parameters
- $obj : object
- $prop : string
setUpMinCardinality()
private
setUpMinCardinality(object $obj, string $prop) : void
Parameters
- $obj : object
- $prop : string
setUpPropertyValue()
Set up the response property values
private
setUpPropertyValue(array<string|int, mixed> $v) : string
Parameters
- $v : array<string|int, mixed>
Return values
stringsetUpRange()
Set up the range value
private
setUpRange(object $v, string $prop) : void
Parameters
- $v : object
- $prop : string