SearchBlockObject
extends MainObject
in package
Description of CollectionObject
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getCategories() : array<string|int, mixed>
- getData() : array<string|int, mixed>
- getEntities() : array<string|int, mixed>
- getYears() : array<string|int, mixed>
- init() : bool
- createModel() : void
- extendCategory() : void
- extendEntity() : void
- extendValuesForForm() : void
- // name = searchbox_types[acdh:Collection] value = acdh:Collection // name = searchbox_category[3d-data:17683] value = 3d-data:17683 // name = datebox_years[2022] value = 2022
- extendYears() : mixed
- formatCategoryTitleForValue() : string
- Transform the string to remove special chars
- processData() : void
Properties
$model
protected
mixed
$model
$repoDb
protected
mixed
$repoDb
$result
protected
mixed
$result
= array()
$siteLang
protected
mixed
$siteLang
= "en"
Methods
__construct()
public
__construct() : mixed
getCategories()
public
getCategories() : array<string|int, mixed>
Return values
array<string|int, mixed>getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getEntities()
public
getEntities() : array<string|int, mixed>
Return values
array<string|int, mixed>getYears()
public
getYears() : array<string|int, mixed>
Return values
array<string|int, mixed>init()
public
init(string $lang) : bool
Parameters
- $lang : string
Return values
boolcreateModel()
protected
createModel() : void
extendCategory()
private
extendCategory() : void
extendEntity()
private
extendEntity() : void
extendValuesForForm()
// name = searchbox_types[acdh:Collection] value = acdh:Collection // name = searchbox_category[3d-data:17683] value = 3d-data:17683 // name = datebox_years[2022] value = 2022
private
extendValuesForForm() : void
extendYears()
private
extendYears() : mixed
formatCategoryTitleForValue()
Transform the string to remove special chars
private
formatCategoryTitleForValue(string $string) : string
Parameters
- $string : string
Return values
stringprocessData()
private
processData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>