MetadataGuiHelper
in package
Description of MetadataGuiHelper
Tags
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() : 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
- formatMetadataGuiView() : mixed
- 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"
- metadataGuiCardinalityByMartina() : string
- reorderPropertiesByOrderValue() : array<string|int, mixed>
- Reorder the elements based on the ordering value
- reorderRootTable() : mixed
- Reorder the root table result
- rtCardinality() : string
- Create the cardinality for the roottable
- setupMetadataGuiType() : mixed
- 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')
$data
private
mixed
$data
= array()
$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')
$result
private
mixed
$result
= array()
$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' ]) : mixed
Parameters
- $data : array<string|int, mixed>
- $lang : string = 'en'
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
stringcheckDataProperty()
private
checkDataProperty(array<string|int, mixed> $prop) : string
Parameters
- $prop : array<string|int, mixed>
Return values
stringcheckPropertyValue()
Check the property value
private
checkPropertyValue(type &$v) : string
Parameters
- $v : type
Return values
stringcreateCardinalityFieldsDefaultValue()
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
stringcreateRootTableHtml()
Create the response html string
private
createRootTableHtml() : string
Return values
stringcreateRootTablePropertyMinMax()
Create Min max values
private
createRootTablePropertyMinMax(object &$v, string &$kt) : void
Parameters
- $v : object
- $kt : string
createRootTablePropertyTitle()
Create the root table property title from the uri
private
createRootTablePropertyTitle(object &$v, string &$kt) : void
Parameters
- $v : object
- $kt : string
createRootTableTd()
private
createRootTableTd(array<string|int, mixed> $value[, string $key = null ]) : string
Parameters
- $value : array<string|int, mixed>
- $key : string = null
Return values
stringformatMetadataGuiView()
Format the metadata gui result for the json output
private
formatMetadataGuiView() : mixed
getOntologyObjData()
Get the ontology property data based on the keys
private
getOntologyObjData(object &$v, string &$kt, string $dKey, string $vKey) : void
Parameters
- $v : object
- $kt : string
- $dKey : string
- $vKey : string
getRtTypeDomain()
Get and display the domain values from the ontology
private
getRtTypeDomain(array<string|int, mixed> $type) : string
Parameters
- $type : array<string|int, mixed>
Return values
stringgetRtTypeRange()
Get and display the range values from the ontology
private
getRtTypeRange(array<string|int, mixed> $type) : string
Parameters
- $type : array<string|int, mixed>
Return values
stringgetRtTypeRecommended()
Get and display the recommended values from the ontology
private
getRtTypeRecommended(array<string|int, mixed> $type) : string
Parameters
- $type : array<string|int, mixed>
Return values
stringgetRtTypeValues()
Create the HTML table acdh class values
private
getRtTypeValues(array<string|int, mixed> $type) : string
Parameters
- $type : array<string|int, mixed>
Return values
stringisCustomClass()
private
isCustomClass(string $type) : string
Parameters
- $type : string
Return values
stringmetadataGuiCardinality()
"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
stringmetadataGuiCardinalityByMartina()
private
metadataGuiCardinalityByMartina(object $data) : string
Parameters
- $data : object
Return values
stringreorderPropertiesByOrderValue()
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) : mixed
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
stringsetupMetadataGuiType()
Create the reponse header
private
setupMetadataGuiType() : mixed