<?php
global $configuration;
include_once("source/logic/server/misc.php");
include_once("source/logic/server/data.php");
include_once("source/logic/server/table.php");
?>
<section class="section" id="word_functions">
<header>Word Functions</header>
<div class="note_error">This section is only a proposal yet; not part of the draft.</div>
<?php
$table = new class_table
(
[
new class_column
(
"Affix",
function ($row)
{
return $row["affix"];
},
function ($value)
{
return mark($value, ["word", "lang_fs"]);
}
),
new class_column
(
"Type",
function ($row)
{
return [$row["type_from"], $row["type_to"]];
},
function ($value)
{
return (
implode
(
" → ",
array_map
(
function ($group)
{
return ("{" . implode(",", $group) . "}");
},
$value
)
)
);
}
),
new class_column