Documentation

DashboardModel
in package

Description of DashboardModel

Tags
author

norbertczirjak

Table of Contents

Properties

$queries  : mixed
$queryKeys  : mixed
$repodb  : mixed

Methods

__construct()  : mixed
changeBackDBConnection()  : mixed
countAllMatchingResourcesForDisseminationService()  : int
Count the selected dissemination service matching resources
getAcdhTypes()  : array<string|int, mixed>
Get the ACDH RDf:TYPE-s for the dropdown list
getDBLastModificationDate()  : string
Get the latest modification date
getFacet()  : array<string|int, mixed>
Retrieve the data: faceting: distinct values of a property
getFacetDetail()  : array<string|int, mixed>
Retrieve the faceting detail data
getPropertyApi()  : array<string|int, mixed>
SQL for the property menu table
getValuesByProperty()  : array<string|int, mixed>
Get all of the properties for the dropdown menu
getValuesByPropertyApiData()  : array<string|int, mixed>
Get the values by property data
getValuesByPropertyDetailData()  : array<string|int, mixed>
getViewData()  : array<string|int, mixed>
Generate the sql data
formatTypeArray()  : string
setUpSearch()  : string
We have to setup the sql for the datatable search fields

Properties

$queries

private mixed $queries = array("properties" => "SELECT * FROM gui.dash_properties_func() ", "classes" => "SELECT * FROM gui.dash_classes_func() ", "classesproperties" => "SELECT * FROM gui.dash_classes_properties_func() ", "topcollections" => "SELECT * FROM gui.dash_topcollections_func() ", "formats" => "SELECT * FROM gui.dash_formats_func() ", "formatspercollection" => "SELECT * FROM gui.dash_formatspercollection_func() ")

$queryKeys

private static mixed $queryKeys = array("properties" => ["property"], "classes" => ["class"], "classesproperties" => ["class", "property"], "topcollections" => ["title"], "formats" => ["format"], "formatspercollection" => ["title", "type", "format"])

Methods

changeBackDBConnection()

public changeBackDBConnection() : mixed

countAllMatchingResourcesForDisseminationService()

Count the selected dissemination service matching resources

public countAllMatchingResourcesForDisseminationService(object $sql) : int
Parameters
$sql : object
Return values
int

getAcdhTypes()

Get the ACDH RDf:TYPE-s for the dropdown list

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

getDBLastModificationDate()

Get the latest modification date

public getDBLastModificationDate() : string
Return values
string

getFacet()

Retrieve the data: faceting: distinct values of a property

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

getFacetDetail()

Retrieve the faceting detail data

public getFacetDetail(string $property, string $value) : array<string|int, mixed>
Parameters
$property : string
$value : string
Return values
array<string|int, mixed>

getPropertyApi()

SQL for the property menu table

public getPropertyApi(string $property, int $offset, int $limit[, string $search = "" ][, int $orderby = 1 ][, string $order = 'asc' ]) : array<string|int, mixed>
Parameters
$property : string
$offset : int
$limit : int
$search : string = ""
$orderby : int = 1
$order : string = 'asc'
Return values
array<string|int, mixed>

getValuesByProperty()

Get all of the properties for the dropdown menu

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

getValuesByPropertyApiData()

Get the values by property data

public getValuesByPropertyApiData(string $property, array<string|int, mixed> $types, int $offset, int $limit[, string $search = "" ][, int $orderby = 1 ][, string $order = 'asc' ]) : array<string|int, mixed>
Parameters
$property : string
$types : array<string|int, mixed>
$offset : int
$limit : int
$search : string = ""
$orderby : int = 1
$order : string = 'asc'
Return values
array<string|int, mixed>

getValuesByPropertyDetailData()

public getValuesByPropertyDetailData(array<string|int, mixed> $params, int $offset, int $limit[, string $search = "" ][, int $orderby = 1 ][, string $order = 'asc' ]) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>
$offset : int
$limit : int
$search : string = ""
$orderby : int = 1
$order : string = 'asc'
Return values
array<string|int, mixed>

getViewData()

Generate the sql data

public getViewData(string $key, int $offset, int $limit, string $search, int $orderby, string $order) : array<string|int, mixed>
Parameters
$key : string
$offset : int
$limit : int
$search : string
$orderby : int
$order : string
Return values
array<string|int, mixed>

formatTypeArray()

private formatTypeArray(array<string|int, mixed> $types) : string
Parameters
$types : array<string|int, mixed>
Return values
string

setUpSearch()

We have to setup the sql for the datatable search fields

private setUpSearch(array<string|int, mixed> $keys, string $value) : string
Parameters
$keys : array<string|int, mixed>
$value : string
Return values
string

        
On this page

Search results