Documentation

FormHelper
in package

Description of FormHelper

Tags
author

nczirjak

Table of Contents

Properties

$schema  : mixed

Methods

checkCacheData()  : bool
Do we have to recache the data?!
formatCategoryTypes()  : array<string|int, mixed>
Format the category data for the form checkboxes
formatEntityTypes()  : array<string|int, mixed>
Format the search filter types for the GUI
formatEntityYears()  : array<string|int, mixed>
Format the search filter Years for the GUI
formatCategoryTitleForValue()  : string
Transform the string to remove special chars

Properties

$schema

private mixed $schema = 'https://vocabs.acdh.oeaw.ac.at/schema#'

Methods

checkCacheData()

Do we have to recache the data?!

public checkCacheData(string $type, string $modifyDate) : bool
Parameters
$type : string
$modifyDate : string
Return values
bool

formatCategoryTypes()

Format the category data for the form checkboxes

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

formatEntityTypes()

Format the search filter types for the GUI

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

formatEntityYears()

Format the search filter Years for the GUI

public formatEntityYears(array<string|int, mixed> $data[, bool $years = false ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
$years : bool = false
Return values
array<string|int, mixed>

formatCategoryTitleForValue()

Transform the string to remove special chars

private formatCategoryTitleForValue(string $string) : string
Parameters
$string : string
Return values
string

        
On this page

Search results