Documentation

MetadataGuiHelper
in package

Description of MetadataGuiHelper

Tags
author

norbertczirjak

Table of Contents

Properties

$actors_involved  : mixed
$coverage  : mixed
$curation  : mixed
$data  : mixed
$dates  : mixed
$relations_other_projects  : mixed
$result  : mixed
$right_access  : mixed

Methods

getData()  : array<string|int, mixed>
getRootTable()  : string
Get the root table data
checkDataProperty()  : string
checkPropertyValue()  : string
Check the property value
createCardinalityFieldsDefaultValue()  : void
Set up the default values for the cardinalities
createRootTableHeader()  : string
The root table header html code
createRootTableHtml()  : string
Create the response html string
createRootTablePropertyMinMax()  : void
Create Min max values
createRootTablePropertyTitle()  : void
Create the root table property title from the uri
createRootTableTd()  : string
Create the root table td values
formatMetadataGuiView()  : void
Format the metadata gui result for the json output
getOntologyObjData()  : void
Get the ontology property data based on the keys
getRtTypeDomain()  : string
Get and display the domain values from the ontology
getRtTypeRange()  : string
Get and display the range values from the ontology
getRtTypeRecommended()  : string
Get and display the recommended values from the ontology
getRtTypeValues()  : string
Create the HTML table acdh class values
isCustomClass()  : string
metadataGuiCardinality()  : string
"optional" means "$min empty or equal to 0" "mandatory" is "$min greater than 0 and $recommended not equal true" "recommended" is "$min greater than 0 and $recommended equal to true"
removeDuplicatesFromOntology()  : type
Because of the rdf we have a lot of duplicates in the resource array, we have to remove them
reorderPropertiesByOrderValue()  : array<string|int, mixed>
Reorder the elements based on the ordering value
reorderRootTable()  : void
Reorder the root table result
rtCardinality()  : string
Create the cardinality for the roottable
setupMetadataGuiType()  : void
Create the reponse header

Properties

$actors_involved

private static mixed $actors_involved = array('hasPrincipalInvestigator', 'hasContact', 'hasCreator', 'hasAuthor', 'hasEditor', 'hasContributor', 'hasFunder', 'hasLicensor', 'hasMetadataCreator', 'hasDigitisingAgent')

$coverage

private static mixed $coverage = array('hasRelatedDiscipline', 'hasCoverage', 'hasActor', 'hasSpatialCoverage', 'hasSubject', 'hasTemporalCoverage', 'hasTemporalCoverageIdentifier', 'hasCoverageEndDate', 'hasCoverageStartDate')

$curation

private static mixed $curation = array('hasDepositor', 'hasAvailableDate', 'hasPid', 'hasNumberOfItems', 'hasBinarySize', 'hasFormat', 'hasLocationPath', 'hasLandingPage', 'hasCurator', 'hasHosting', 'hasSubmissionDate', 'hasAcceptedDate', 'hasTransferDate', 'hasTransferMethod', 'hasUpdateDate')

$dates

private static mixed $dates = array('hasDate', 'hasStartDate', 'hasEndDate', 'hasCreatedDate', 'hasCreatedStartDate', 'hasCreatedEndDate', 'hasCollectedStartDate', 'hasCollectedEndDate', 'hasCreatedStartDateOriginal', 'hasCreatedEndDateOriginal')

$relations_other_projects

private static mixed $relations_other_projects = array('relation', 'hasRelatedProject', 'hasRelatedCollection', 'continues', 'isContinuedBy', 'documents', 'isDocumentedBy', 'hasDerivedPublication', 'hasMetadata', 'isMetadataFor', 'hasSource', 'isSourceOf', 'isNewVersionOf', 'isPreviousVersionOf', 'hasPart', 'isPartOf', 'hasTitleImage', 'isTitleImageOf', 'hasVersionInfo')

$right_access

private static mixed $right_access = array('hasOwner', 'hasRightsHolder', 'hasLicense', 'hasAccessRestriction', 'hasRestrictionRole', 'hasLicenseSummary', 'hasAccessRestrictionSummary')

Methods

getData()

public getData(array<string|int, mixed> $data[, string $lang = 'en' ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
$lang : string = 'en'
Return values
array<string|int, mixed>

getRootTable()

Get the root table data

public getRootTable(array<string|int, mixed> $data[, string $lang = 'en' ]) : string
Parameters
$data : array<string|int, mixed>
$lang : string = 'en'
Return values
string

checkDataProperty()

private checkDataProperty(array<string|int, mixed> $prop) : string
Parameters
$prop : array<string|int, mixed>
Return values
string

checkPropertyValue()

Check the property value

private checkPropertyValue(type &$v) : string
Parameters
$v : type
Return values
string

createCardinalityFieldsDefaultValue()

Set up the default values for the cardinalities

private createCardinalityFieldsDefaultValue(object &$v, string $tableClass, string $key) : void
Parameters
$v : object
$tableClass : string
$key : string

createRootTableHeader()

The root table header html code

private createRootTableHeader() : string
Return values
string

createRootTableHtml()

Create the response html string

private createRootTableHtml() : string
Return values
string

createRootTablePropertyMinMax()

Create Min max values

private createRootTablePropertyMinMax(object &$v, string &$kt, int $i) : void
Parameters
$v : object
$kt : string
$i : int

createRootTablePropertyTitle()

Create the root table property title from the uri

private createRootTablePropertyTitle(object &$v, string &$kt, int $i) : void
Parameters
$v : object
$kt : string
$i : int

createRootTableTd()

Create the root table td values

private createRootTableTd(array<string|int, mixed> $value[, string $key = null ]) : string
Parameters
$value : array<string|int, mixed>
$key : string = null
Return values
string

formatMetadataGuiView()

Format the metadata gui result for the json output

private formatMetadataGuiView() : void

getOntologyObjData()

Get the ontology property data based on the keys

private getOntologyObjData(object &$v, string &$kt, string $dKey, string $vKey, int $i) : void
Parameters
$v : object
$kt : string
$dKey : string
$vKey : string
$i : int

getRtTypeDomain()

Get and display the domain values from the ontology

private getRtTypeDomain(array<string|int, mixed> $type, int $i) : string
Parameters
$type : array<string|int, mixed>
$i : int
Return values
string

getRtTypeRange()

Get and display the range values from the ontology

private getRtTypeRange(array<string|int, mixed> $type, int $i) : string
Parameters
$type : array<string|int, mixed>
$i : int
Return values
string

getRtTypeRecommended()

Get and display the recommended values from the ontology

private getRtTypeRecommended(array<string|int, mixed> $type, int $i) : string
Parameters
$type : array<string|int, mixed>
$i : int
Return values
string

getRtTypeValues()

Create the HTML table acdh class values

private getRtTypeValues(array<string|int, mixed> $type, int $i) : string
Parameters
$type : array<string|int, mixed>
$i : int
Return values
string

isCustomClass()

private isCustomClass(string $type) : string
Parameters
$type : string
Return values
string

metadataGuiCardinality()

"optional" means "$min empty or equal to 0" "mandatory" is "$min greater than 0 and $recommended not equal true" "recommended" is "$min greater than 0 and $recommended equal to true"

private metadataGuiCardinality(object $data) : string
Parameters
$data : object
Return values
string

removeDuplicatesFromOntology()

Because of the rdf we have a lot of duplicates in the resource array, we have to remove them

private removeDuplicatesFromOntology(array<string|int, mixed> $data) : type
Parameters
$data : array<string|int, mixed>
Return values
type

reorderPropertiesByOrderValue()

Reorder the elements based on the ordering value

private reorderPropertiesByOrderValue(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

reorderRootTable()

Reorder the root table result

private reorderRootTable(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

rtCardinality()

Create the cardinality for the roottable

private rtCardinality([string $min = null ][, string $max = null ]) : string
Parameters
$min : string = null
$max : string = null
Return values
string

setupMetadataGuiType()

Create the reponse header

private setupMetadataGuiType() : void

        
On this page

Search results