Jelix 1.8.16

jFormsDynamicStaticDatasource extends jFormsDynamicDatasource
in package

A datasource which is based on a list of associative array

Tags
subpackage

forms

Table of Contents

$data  : array<string|int, array<string|int, mixed>>
array of associative array which contains keys, labels and other values that can serve as filters.
$criteriaFrom  : mixed
$filterKeysMapping  : array<string|int, mixed>
$groupeBy  : mixed
$keyKey  : string
$labelKeys  : array<string|int, string>
List of array keys that can serve as labels.
$labelSeparator  : string
Separator to glue labels
__construct()  : mixed
getCriteriaControls()  : array<string|int, string>
Return the list of controls name that provide criterion values.
getData()  : mixed
getLabel()  : mixed
getLabel2()  : mixed
hasGroupedData()  : mixed
setCriteriaControls()  : mixed
set the list of controls name that provide criterion values.
setFilterKeysMapping()  : mixed
setGroupBy()  : mixed
setKeyAndLabelKeys()  : mixed
buildLabel()  : mixed
filterWithCriteria()  : mixed

Properties

$data

array of associative array which contains keys, labels and other values that can serve as filters.

public array<string|int, array<string|int, mixed>> $data = array()
Tags

$filterKeysMapping

protected array<string|int, mixed> $filterKeysMapping = array()

mapping for criterias : form control name => key of the array item

Tags

Methods

getCriteriaControls()

Return the list of controls name that provide criterion values.

public getCriteriaControls() : array<string|int, string>
Tags
Return values
array<string|int, string>

setCriteriaControls()

set the list of controls name that provide criterion values.

public setCriteriaControls([mixed $criteriaFrom = null ]) : mixed
Parameters
$criteriaFrom : mixed = null
Tags
Return values
mixed

setFilterKeysMapping()

public setFilterKeysMapping(array<string|int, mixed> $mapping) : mixed
Parameters
$mapping : array<string|int, mixed>
Tags
Return values
mixed

setKeyAndLabelKeys()

public setKeyAndLabelKeys(mixed $keyName, array<string|int, mixed> $labelKeyNames[, mixed $separator = ',' ]) : mixed
Parameters
$keyName : mixed
$labelKeyNames : array<string|int, mixed>
$separator : mixed = ','
Tags
Return values
mixed

Search results