Files
gutachten_t3/packages/gutachten/Classes/Downloads/Inhaltsverzeichnis.php
T

35 lines
690 B
PHP

<?php
namespace HermannTelser\Gutachten\Downloads;
use HermannTelser\Gutachten\Utility\Helper;
class Inhaltsverzeichnis
{
/**
* @param mixed $value
* @param mixed $_platzhalter
* @param mixed $_gutachter
*
* @return array
*/
public static function create($value, $_platzhalter)
{
$html .= '<div class="header">INHALTSVERZEICHNIS</div>';
$tmp = Helper::replacePlatzhalter($_platzhalter, $value['txt']);
$_inhalt = explode('<br />', $tmp);
$table = '<table class="inhalt">';
foreach ($_inhalt as $key => $value) {
$_row = explode('|', $value);
$table .= Helper::table_row($_row, 0, 0);
}
$table .= '</table>';
$html .= $table;
return $html;
}
}