FileFormatsHTMLHelper
in package
Description of MetadataGuiHTMLHelper
Tags
Table of Contents
Properties
- $categories : mixed
- $categoriesData : mixed
- $data : mixed
- $fields : mixed
Methods
- fetchHtmlContent() : string
- Fetch the whole table
- createHeader() : string
- Create the Header for the HTML table
- createRows() : string
- fetch the table rows
- fetchCategoriesData() : void
- Loop through the data array to reorder the data based on the categories
Properties
$categories
private
static mixed
$categories
= ["https://vocabs.acdh.oeaw.ac.at/archecategory/text" => "TEXT DOCUMENTS", "https://vocabs.acdh.oeaw.ac.at/archecategory/audioVisual" => "AUDIO / VIDEO", "https://vocabs.acdh.oeaw.ac.at/archecategory/image" => "IMAGE", "https://vocabs.acdh.oeaw.ac.at/archecategory/dataset" => "DATASET", "https://vocabs.acdh.oeaw.ac.at/archecategory/3dData" => "3D DATA"]
$categoriesData
private
mixed
$categoriesData
= []
$data
private
mixed
$data
$fields
private
static mixed
$fields
= ["EXTENSION", "FORMAT NAME & VERSION", "PREFERENCE"]
Methods
fetchHtmlContent()
Fetch the whole table
public
fetchHtmlContent(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
Return values
stringcreateHeader()
Create the Header for the HTML table
private
createHeader() : string
Return values
stringcreateRows()
fetch the table rows
private
createRows() : string
Return values
stringfetchCategoriesData()
Loop through the data array to reorder the data based on the categories
private
fetchCategoriesData() : void