This commit is contained in:
Kevin Adametz 2020-02-14 10:18:20 +01:00
parent bed91c4f4a
commit c8948338bb
122 changed files with 7911 additions and 1639 deletions

View file

@ -61,6 +61,7 @@ class HTMLHelper
0 => 'Kunde',
1 => 'Admin',
2 => 'SuperAdmin',
3 => 'SysAdmin',
];
@ -103,6 +104,9 @@ class HTMLHelper
case 2:
return 'badge-primary';
break;
case 3:
return 'badge-success';
break;
}
}

View file

@ -127,4 +127,17 @@ class Util
$html = $dom->saveHTML();
return $html;
}
public static function convertArrayWindowsCharset($values){
foreach ($values as $key=>$string){
$values[$key] = self::convertStringWindowsCharset($string);
}
return $values;
}
public static function convertStringWindowsCharset($value) {
$charset = mb_detect_encoding($value, "UTF-8, ISO-8859-1, ISO-8859-15", true);
return mb_convert_encoding($value, "Windows-1252", $charset);
}
}