ChildApiHelper
in package
Uses
ArcheUtilTrait
Description of ApiViewHelper
Tags
Table of Contents
Properties
- $config : mixed
- $generalFunctions : mixed
- $repoDb : mixed
- $siteLang : mixed
- $childViewObjectArray : mixed
- $data : mixed
- $properties : mixed
Methods
- __construct() : mixed
- createResourceObject() : array<string|int, mixed>
- createView() : array<string|int, mixed>
- Child view create
- 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
- createObj() : object
- Create the root object for gui
- fetchProperties() : void
- Fetch the property values and create the response object
- formatResultToGui() : array<string|int, mixed>
- We need to format the root results for the gui
- 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
- setProperties() : mixed
- Set the properties what we want to process for the child object
- setTitle() : void
- setUpRepoIdForExternalType() : void
- setUri() : void
Properties
$config
protected
mixed
$config
$generalFunctions
protected
mixed
$generalFunctions
$repoDb
protected
mixed
$repoDb
$siteLang
protected
mixed
$siteLang
$childViewObjectArray
private
mixed
$childViewObjectArray
$data
private
mixed
$data
= array()
$properties
private
mixed
$properties
= array()
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()
Child view create
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
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
stringcreateObj()
Create the root object for gui
private
createObj(int $id, string $property, string $title, string $value) : object
Parameters
- $id : int
- $property : string
- $title : string
- $value : string
Return values
objectfetchProperties()
Fetch the property values and create the response object
private
fetchProperties(string $k, object $v, string $lang) : void
Parameters
- $k : string
- $v : object
- $lang : string
formatResultToGui()
We need to format the root results for the gui
private
formatResultToGui(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>getLiteralValues()
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
stringsetProperties()
Set the properties what we want to process for the child object
private
setProperties() : mixed
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