ResourceCoreObject
in package
Table of Contents
Properties
- $accessLevels : mixed
- $acdhid : mixed
- $audioCategories : mixed
- $biblatexUrl : mixed
- $config : mixed
- $iiifFormats : mixed
- $language : mixed
- $properties : mixed
- $publicAccessTitle : mixed
- $publicAccessValue : mixed
- $repoid : mixed
- $thumbUrl : mixed
Methods
- __construct() : mixed
- getAccessRestriction() : array<string|int, mixed>
- Get the accessrestriction url and title
- getAcdhID() : string
- Get the resource acdh id
- getAcdhType() : string
- Get the acdh type string
- getAvailableDate() : string
- Get the available date in a specified format
- getBiblatexUrl() : string
- Get the biblatex disserv url
- getCoordinates() : string
- getCopyResourceLink() : string
- Select the identifier for the Copy resource link Order : PID , ID.acdh.oeaw.ac.at, arche api id REDMINE ID: #19888
- getCreditsData() : array<string|int, mixed>
- Return the metadata view right box Credits card content
- getData() : array<string|int, mixed>
- get the data based on the property
- getDataArrayString() : mixed
- Fetch property which has more than one value as array or as string
- getDataByPropertyList() : array<string|int, mixed>
- If we need an array of propertys data
- getDataString() : string
- Get the defined property String values
- getExpertTableData() : array<string|int, mixed>
- Get all data
- getFormattedDateByProperty() : string
- Format the date values for the twig template
- getFundingData() : array<string|int, mixed>
- getIdentifiers() : array<string|int, mixed>
- All identifiers
- getInsideUrl() : string
- Get resource inside uri
- getLicenseData() : array<string|int, mixed>
- Return the metadata view right box License card content
- getMapType() : string
- Get the WKT map type
- getMultiPolygonFirstCoordinate() : string
- Create the JS string for the leaflet map MultiPolyLang from Multipolygon data
- getNonAcdhApiIdentifiers() : type
- Get all identifiers which are not acdh api related
- getNonAcdhIdentifiers() : type
- Get all identifiers which are not acdh related
- getOneID() : string
- Get the first identifier for dissemination services (Not all the time we have acdh.id...)
- getPid() : string
- PID
- getPidOrAcdhIdentifier() : string
- getPlaceAddress() : array<string|int, mixed>
- Place view Address section
- getPlaceIds() : array<string|int, mixed>
- Use geonames ID, if no geonames then whatever is not ARCHE domain, else ARCHE domain
- getPolygon() : string
- Get Polygon data fpr map
- getPolygonData() : string
- Add Multipolygon string for the polygon dataset, othwerwise the js plugin cant handle it
- getPolygonFirstCoordinate() : string
- Create the JS string for the leaflet map MultiPolyLang from Polygon data
- getProjectDetailsData() : array<string|int, mixed>
- getRdfTypes() : array<string|int, mixed>
- Display all RDF:Type Values
- getRepoBaseUrl() : string
- Get the GUI base url
- getRepoGuiUrl() : string
- Get the Gui related url for the resource
- getRepoID() : string
- Get the repo identifier
- getRepoUrl() : string
- Get the full repo url with the identifier for the actual resource
- getResourceAccessLevel() : string
- Get the actual resource access level for the user login check
- getRootID() : string
- getSizeData() : array<string|int, mixed>
- Return the metadata view right box Size card content
- getSkosType() : string
- Get the skos concept type for the custom gui detail view
- getTechnicalData() : array<string|int, mixed>
- Return the metadata view right box getResMetaTechnicalData card content
- getTitle() : string
- Get the Resource title
- getUUID() : string
- Get the resource acdh uuid
- getVCRData() : string
- Create the VCR data json string REDMINE ID: #19076
- getVocabsIdentifiers() : array<string|int, mixed>
- Collect Vocabs identifiers for concept
- hasVersion() : bool
- Check if we have to display the version box
- is3DObject() : bool
- Check the resource is a 3d object
- isAudio() : bool
- Check the resource has an audio, to display the audio player
- isBinary() : bool
- check if the Resource is an uploaded binary
- isContactDetails() : bool
- isIIIF() : bool
- Check if the resource supports IIIF viewer
- isPDF() : bool
- Check if the resource is a pdf file
- isPublic() : bool
- Check the resource is public or not
- isUserLoggedIn() : bool
- Check if the user is logged in or not
- checkMultiPolygonMapString() : string
- Transform Multipolygon string
- formatBytes() : mixed
- setData() : mixed
- Change property data
Properties
$accessLevels
private
mixed
$accessLevels
= ['public' => 'öffentlich', 'academic' => 'akademisch', 'restricted' => 'eingeschränkt']
$acdhid
private
mixed
$acdhid
$audioCategories
private
mixed
$audioCategories
= array('audio', 'sound', 'speechrecording', 'speech')
$biblatexUrl
private
mixed
$biblatexUrl
= 'https://arche-biblatex.acdh.oeaw.ac.at/'
$config
private
mixed
$config
$iiifFormats
private
mixed
$iiifFormats
= array('image/jpeg', 'image/png', 'image/tiff')
$language
private
mixed
$language
= 'en'
$properties
private
mixed
$properties
$publicAccessTitle
private
mixed
$publicAccessTitle
= ['public', 'öffentlich']
$publicAccessValue
private
mixed
$publicAccessValue
= 'https://vocabs.acdh.oeaw.ac.at/archeaccessrestrictions/public'
$repoid
private
mixed
$repoid
$thumbUrl
private
mixed
$thumbUrl
= 'https://arche-thumbnails.acdh.oeaw.ac.at/'
Methods
__construct()
public
__construct(array<string|int, mixed> $data, object $config[, string $language = 'en' ]) : mixed
Parameters
- $data : array<string|int, mixed>
- $config : object
- $language : string = 'en'
getAccessRestriction()
Get the accessrestriction url and title
public
getAccessRestriction() : array<string|int, mixed>
Return values
array<string|int, mixed>getAcdhID()
Get the resource acdh id
public
getAcdhID() : string
Return values
stringgetAcdhType()
Get the acdh type string
public
getAcdhType() : string
Return values
stringgetAvailableDate()
Get the available date in a specified format
public
getAvailableDate() : string
Return values
stringgetBiblatexUrl()
Get the biblatex disserv url
public
getBiblatexUrl() : string
Return values
stringgetCoordinates()
public
getCoordinates() : string
Return values
stringgetCopyResourceLink()
Select the identifier for the Copy resource link Order : PID , ID.acdh.oeaw.ac.at, arche api id REDMINE ID: #19888
public
getCopyResourceLink() : string
Return values
stringgetCreditsData()
Return the metadata view right box Credits card content
public
getCreditsData() : array<string|int, mixed>
Return values
array<string|int, mixed>getData()
get the data based on the property
public
getData(string $property) : array<string|int, mixed>
Parameters
- $property : string
Return values
array<string|int, mixed>getDataArrayString()
Fetch property which has more than one value as array or as string
public
getDataArrayString(string $property[, string $output = "array" ]) : mixed
Parameters
- $property : string
- $output : string = "array"
getDataByPropertyList()
If we need an array of propertys data
public
getDataByPropertyList(array<string|int, mixed> $props) : array<string|int, mixed>
Parameters
- $props : array<string|int, mixed>
Return values
array<string|int, mixed>getDataString()
Get the defined property String values
public
getDataString(string $property) : string
Parameters
- $property : string
Return values
stringgetExpertTableData()
Get all data
public
getExpertTableData() : array<string|int, mixed>
Return values
array<string|int, mixed>getFormattedDateByProperty()
Format the date values for the twig template
public
getFormattedDateByProperty(string $property[, string $dateFormat = 'Y' ]) : string
Parameters
- $property : string
- $dateFormat : string = 'Y'
Return values
stringgetFundingData()
public
getFundingData() : array<string|int, mixed>
Return values
array<string|int, mixed>getIdentifiers()
All identifiers
public
getIdentifiers() : array<string|int, mixed>
Return values
array<string|int, mixed>getInsideUrl()
Get resource inside uri
public
getInsideUrl() : string
Return values
stringgetLicenseData()
Return the metadata view right box License card content
public
getLicenseData() : array<string|int, mixed>
Return values
array<string|int, mixed>getMapType()
Get the WKT map type
public
getMapType() : string
Return values
stringgetMultiPolygonFirstCoordinate()
Create the JS string for the leaflet map MultiPolyLang from Multipolygon data
public
getMultiPolygonFirstCoordinate() : string
Return values
stringgetNonAcdhApiIdentifiers()
Get all identifiers which are not acdh api related
public
getNonAcdhApiIdentifiers() : type
Return values
typegetNonAcdhIdentifiers()
Get all identifiers which are not acdh related
public
getNonAcdhIdentifiers() : type
Return values
typegetOneID()
Get the first identifier for dissemination services (Not all the time we have acdh.id...)
public
getOneID() : string
Return values
stringgetPid()
PID
public
getPid() : string
Return values
stringgetPidOrAcdhIdentifier()
public
getPidOrAcdhIdentifier() : string
Return values
stringgetPlaceAddress()
Place view Address section
public
getPlaceAddress() : array<string|int, mixed>
Return values
array<string|int, mixed>getPlaceIds()
Use geonames ID, if no geonames then whatever is not ARCHE domain, else ARCHE domain
public
getPlaceIds() : array<string|int, mixed>
Return values
array<string|int, mixed>getPolygon()
Get Polygon data fpr map
public
getPolygon() : string
Return values
stringgetPolygonData()
Add Multipolygon string for the polygon dataset, othwerwise the js plugin cant handle it
public
getPolygonData() : string
Return values
stringgetPolygonFirstCoordinate()
Create the JS string for the leaflet map MultiPolyLang from Polygon data
public
getPolygonFirstCoordinate() : string
Return values
stringgetProjectDetailsData()
public
getProjectDetailsData() : array<string|int, mixed>
Return values
array<string|int, mixed>getRdfTypes()
Display all RDF:Type Values
public
getRdfTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getRepoBaseUrl()
Get the GUI base url
public
getRepoBaseUrl() : string
Return values
stringgetRepoGuiUrl()
Get the Gui related url for the resource
public
getRepoGuiUrl() : string
Return values
stringgetRepoID()
Get the repo identifier
public
getRepoID() : string
Return values
stringgetRepoUrl()
Get the full repo url with the identifier for the actual resource
public
getRepoUrl() : string
Return values
stringgetResourceAccessLevel()
Get the actual resource access level for the user login check
public
getResourceAccessLevel() : string
Return values
stringgetRootID()
public
getRootID() : string
Return values
stringgetSizeData()
Return the metadata view right box Size card content
public
getSizeData() : array<string|int, mixed>
Return values
array<string|int, mixed>getSkosType()
Get the skos concept type for the custom gui detail view
public
getSkosType() : string
Return values
stringgetTechnicalData()
Return the metadata view right box getResMetaTechnicalData card content
public
getTechnicalData(array<string|int, mixed> $props) : array<string|int, mixed>
Parameters
- $props : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
Get the Resource title
public
getTitle() : string
Return values
stringgetUUID()
Get the resource acdh uuid
public
getUUID() : string
Return values
stringgetVCRData()
Create the VCR data json string REDMINE ID: #19076
public
getVCRData() : string
Return values
stringgetVocabsIdentifiers()
Collect Vocabs identifiers for concept
public
getVocabsIdentifiers() : array<string|int, mixed>
Return values
array<string|int, mixed>hasVersion()
Check if we have to display the version box
public
hasVersion() : bool
Return values
boolis3DObject()
Check the resource is a 3d object
public
is3DObject() : bool
Return values
boolisAudio()
Check the resource has an audio, to display the audio player
public
isAudio() : bool
Return values
boolisBinary()
check if the Resource is an uploaded binary
public
isBinary() : bool
Return values
boolisContactDetails()
public
isContactDetails() : bool
Return values
boolisIIIF()
Check if the resource supports IIIF viewer
public
isIIIF() : bool
Return values
boolisPDF()
Check if the resource is a pdf file
public
isPDF() : bool
Return values
boolisPublic()
Check the resource is public or not
public
isPublic() : bool
Return values
boolisUserLoggedIn()
Check if the user is logged in or not
public
isUserLoggedIn() : bool
Return values
boolcheckMultiPolygonMapString()
Transform Multipolygon string
private
checkMultiPolygonMapString() : string
Return values
stringformatBytes()
private
formatBytes(mixed $bytes[, mixed $precision = 2 ]) : mixed
Parameters
- $bytes : mixed
- $precision : mixed = 2
setData()
Change property data
private
setData([string $prop = null ][, array<string|int, mixed> $v = array() ]) : mixed
Parameters
- $prop : string = null
- $v : array<string|int, mixed> = array()