ArcheUtilTrait
Description of ArcheHelper
Tags
Table of Contents
Properties
- $config : mixed
- $generalFunctions : mixed
- $repoDb : mixed
- $siteLang : mixed
Methods
- __construct() : mixed
- createResourceObject() : 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
- 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
$config
protected
mixed
$config
$generalFunctions
protected
mixed
$generalFunctions
$repoDb
protected
mixed
$repoDb
$siteLang
protected
mixed
$siteLang
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>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
intprocessGraph()
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
stringgetLiteralValues()
private
getLiteralValues(array<string|int, mixed> $v) : object
Parameters
- $v : array<string|int, mixed>
Return values
objectgetObjectValues()
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
stringgetUriValues()
private
getUriValues(array<string|int, mixed> $v) : object
Parameters
- $v : array<string|int, mixed>
Return values
objectsetAcdhId()
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
stringsetTitle()
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