Documentation

DetailViewHelper
in package
Uses ArcheUtilTrait

Description of DetailViewHelper

Tags
author

nczirjak

Table of Contents

Properties

$config  : mixed
$generalFunctions  : mixed
$repoDb  : mixed
$siteLang  : mixed
$detailViewObjectArray  : mixed

Methods

__construct()  : mixed
createResourceObject()  : array<string|int, mixed>
createView()  : array<string|int, mixed>
Build up the necessary data for the detail view
getCount()  : int
Get the count from the rest api result
overviewObj()  : array<string|int, mixed>
Do the API call ti fetch the detail view data
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
getLiteralValues()  : object
getObjectValues()  : array<string|int, mixed>
getResourceRepoIdentifier()  : string
getUriValues()  : object
setAcdhId()  : void
setIDTypeAcdhId()  : void
setIDTypeRepoId()  : void
setIDTypeUri()  : void
setLanguage()  : string
Set the language tag for the object
setTitle()  : void
setUpRepoIdForExternalType()  : void
setUri()  : void

Properties

Methods

__construct()

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

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()

Build up the necessary data for the detail view

public createView([array<string|int, mixed> $data = array() ]) : array<string|int, mixed>
Parameters
$data : 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

overviewObj()

Do the API call ti fetch the detail view data

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

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

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

setAcdhId()

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

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