Documentation

DetailViewModel extends ArcheModel
in package

Description of DetailViewModel

Tags
author

nczirjak

Table of Contents

Properties

$config  : mixed
$drupalDb  : mixed
$limit  : mixed
$offset  : mixed
$order  : mixed
$repoDb  : mixed
$siteLang  : mixed

Methods

__construct()  : mixed
getBreadCrumbData()  : array<string|int, mixed>
Get the breadcrumb data for the detail view
getTooltipOntology()  : array<string|int, mixed>
Get the ontology for the tooltip
getViewData()  : array<string|int, mixed>
Get the detail view data from DB
getViewDataLib()  : object
setSqlTimeout()  : mixed
Set the sql execution max time
closeDBConnection()  : mixed
ordering()  : object
Create the order values for the sql
orderingByFields()  : object
reOrderResult()  : array<string|int, mixed>
Reorder the result because of the easyrdf
setActiveConnection()  : mixed
Allow the DB connection
sortAssociativeArrayByKey()  : array<string|int, mixed>
Reorder the Easyrdf result because the dataset is already filtered by the API But the actual order is not possible from the easyrdf, so we have to sort is manually.

Properties

Methods

getBreadCrumbData()

Get the breadcrumb data for the detail view

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

getTooltipOntology()

Get the ontology for the tooltip

public getTooltipOntology() : array<string|int, mixed>
Return values
array<string|int, mixed>

getViewData()

Get the detail view data from DB

public getViewData([string $identifier = "" ]) : array<string|int, mixed>
Parameters
$identifier : string = ""
Return values
array<string|int, mixed>

getViewDataLib()

public getViewDataLib([string $identifier = "" ]) : object
Parameters
$identifier : string = ""
Return values
object

setSqlTimeout()

Set the sql execution max time

public setSqlTimeout([string $timeout = '7000' ]) : mixed
Parameters
$timeout : string = '7000'

closeDBConnection()

protected closeDBConnection() : mixed

ordering()

Create the order values for the sql

protected ordering([string $orderby = "titleasc" ]) : object
Parameters
$orderby : string = "titleasc"
Return values
object

orderingByFields()

protected orderingByFields(array<string|int, mixed> $valuesAndFields[, string $orderby = "titleasc" ]) : object
Parameters
$valuesAndFields : array<string|int, mixed>
$orderby : string = "titleasc"
Return values
object

reOrderResult()

Reorder the result because of the easyrdf

protected reOrderResult(array<string|int, mixed> $data, string $order) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
$order : string
Return values
array<string|int, mixed>

setActiveConnection()

Allow the DB connection

protected setActiveConnection() : mixed

sortAssociativeArrayByKey()

Reorder the Easyrdf result because the dataset is already filtered by the API But the actual order is not possible from the easyrdf, so we have to sort is manually.

protected sortAssociativeArrayByKey(array<string|int, mixed> $array, string $key, string $direction) : array<string|int, mixed>

.

Parameters
$array : array<string|int, mixed>
$key : string
$direction : string
Return values
array<string|int, mixed>

        
On this page

Search results