Utils
in package
Description of Utils
Tags
Table of Contents
Properties
- $config : mixed
- $data : mixed
- $properties : mixed
- $rdfProps : mixed
- $repoDb : mixed
- $siteLang : mixed
Methods
- __construct() : mixed
- convertSqlToRdfProps() : array<string|int, mixed>
- formatResultToGui() : mixed
- addTopCollectionProperty() : void
- createObj() : object
- fetchProperties() : void
- rdfProps() : array<string|int, mixed>
- setLanguage() : string
Properties
$config
private
mixed
$config
$data
private
mixed
$data
$properties
private
mixed
$properties
$rdfProps
private
mixed
$rdfProps
$repoDb
private
mixed
$repoDb
$siteLang
private
mixed
$siteLang
Methods
__construct()
public
__construct([mixed $cfg = null ]) : mixed
Parameters
- $cfg : mixed = null
convertSqlToRdfProps()
public
convertSqlToRdfProps(array<string|int, mixed> $data, string $lang) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
- $lang : string
Return values
array<string|int, mixed>formatResultToGui()
public
formatResultToGui(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
addTopCollectionProperty()
private
addTopCollectionProperty(string $lang, int $k, object &$v) : void
Parameters
- $lang : string
- $k : int
- $v : object
createObj()
private
createObj(int $id, string $property, string $title, string $value) : object
Parameters
- $id : int
- $property : string
- $title : string
- $value : string
Return values
objectfetchProperties()
private
fetchProperties(string $k, object $v, string $lang) : void
Parameters
- $k : string
- $v : object
- $lang : string
rdfProps()
private
rdfProps() : array<string|int, mixed>
Return values
array<string|int, mixed>setLanguage()
private
setLanguage(object &$v) : string
Parameters
- $v : object