Documentation

DisseminationServicesHelper
in package
Uses ArcheUtilTrait

Description of DisseminationServicesHelper

Tags
author

norbertczirjak

Table of Contents

Properties

$config  : mixed
$generalFunctions  : mixed
$repoDb  : mixed
$siteLang  : mixed
$additionalData  : mixed
$collectionDate  : mixed
$collectionTmpDir  : mixed
$data  : mixed
$repoid  : mixed
$repoUrl  : mixed
$result  : mixed
$tmpDir  : mixed

Methods

__construct()  : mixed
convertToTreeById()  : type
This func is generating a child based array from a single array by ID
createResourceObject()  : array<string|int, mixed>
createView()  : array<string|int, mixed>
getCount()  : int
Get the count from the rest api result
processGraph()  : array<string|int, mixed>
Process the easyrdf graph data and create ResourceObject arrays
extendActualObj()  : mixed
Extend the actual object with the shortcuts
makeInsideUri()  : string
Create gui inside uri from the identifier
createCollection()  : mixed
function for the collection data steps
createTreeData()  : array<string|int, mixed>
Creates the tree data for the collection download views
getLiteralValues()  : object
getLorisUrl()  : string
Get the loris url for the loris disserv viewer
getObjectValues()  : array<string|int, mixed>
getResourceRepoIdentifier()  : string
getUriValues()  : object
modifyCollectionDataStructure()  : mixed
Modify the collection data structure for the tree view
setAcdhId()  : void
setAdditionalData()  : mixed
setIDTypeAcdhId()  : void
setIDTypeRepoId()  : void
setIDTypeUri()  : void
setLanguage()  : string
Set the language tag for the object
setRepoUrlId()  : mixed
setTitle()  : void
setTmpDir()  : mixed
setUpRepoIdForExternalType()  : void
setUri()  : void
threeDDissService()  : type
3d dissemination service function

Properties

Methods

__construct()

public __construct([mixed $cfg = null ]) : mixed
Parameters
$cfg : mixed = null

convertToTreeById()

This func is generating a child based array from a single array by ID

public convertToTreeById(type &$list, type $parent) : type
Parameters
$list : type
$parent : type
Return values
type

createResourceObject()

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

createView()

public createView([array<string|int, mixed> $data = array() ][, string $dissemination = '' ][, string $identifier = '' ][, array<string|int, mixed> $additionalData = array() ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed> = array()
$dissemination : string = ''
$identifier : string = ''
$additionalData : array<string|int, mixed> = array()
Return values
array<string|int, mixed>

getCount()

Get the count from the rest api result

public getCount(array<string|int, mixed> &$obj) : int
Parameters
$obj : array<string|int, mixed>
Return values
int

processGraph()

Process the easyrdf graph data and create ResourceObject arrays

public processGraph(array<string|int, mixed> $obj) : array<string|int, mixed>
Parameters
$obj : array<string|int, mixed>
Return values
array<string|int, mixed>

extendActualObj()

Extend the actual object with the shortcuts

protected extendActualObj([bool $root = false ]) : mixed
Parameters
$root : bool = false

makeInsideUri()

Create gui inside uri from the identifier

protected makeInsideUri(string $data) : string
Parameters
$data : string
Return values
string

createTreeData()

Creates the tree data for the collection download views

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

getLiteralValues()

private getLiteralValues(array<string|int, mixed> $v) : object
Parameters
$v : array<string|int, mixed>
Return values
object

getObjectValues()

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

getResourceRepoIdentifier()

private getResourceRepoIdentifier(mixed $id) : string
Parameters
$id : mixed
Return values
string

getUriValues()

private getUriValues(array<string|int, mixed> $v) : object
Parameters
$v : array<string|int, mixed>
Return values
object

modifyCollectionDataStructure()

Modify the collection data structure for the tree view

private modifyCollectionDataStructure() : mixed

setAcdhId()

private setAcdhId(object &$d) : void
Parameters
$d : object

setAdditionalData()

private setAdditionalData([array<string|int, mixed> $additionalData = array() ]) : mixed
Parameters
$additionalData : array<string|int, mixed> = array()

we pass here the additional data for the resources f.e. colelction root data for the tree view

setIDTypeAcdhId()

private setIDTypeAcdhId(object &$d) : void
Parameters
$d : object

setIDTypeRepoId()

private setIDTypeRepoId(object &$d) : void
Parameters
$d : object

setIDTypeUri()

private setIDTypeUri(object &$d) : void
Parameters
$d : object

setLanguage()

Set the language tag for the object

private setLanguage(object $obj) : string
Parameters
$obj : object
Return values
string

setTitle()

private setTitle(object &$d) : void
Parameters
$d : object

setUpRepoIdForExternalType()

private setUpRepoIdForExternalType(object &$d) : void
Parameters
$d : object

setUri()

private setUri(object &$d) : void
Parameters
$d : object

        
On this page

Search results