3
require_once($GLOBALS['ADEI_ROOTDIR'] . "/classes/readers/zeus.php");
5
class KATRINZEUSReader extends ZEUS {
7
function __construct(&$props) {
8
parent::__construct($props);
12
function GetDatabaseList($flags = 0) {
13
$filter = $this->GetDatabaseFilter($flags);
14
$res = $this->SortDatabaseList($this->db->GetDatabaseList($filter));
16
foreach ($res as &$item) {
17
if (preg_match("/(.*)[._](\d{8})$/", $item['name'], $m)) {
18
// $item['name'] = gettext($m[1]) . ", " . translate("Archive of %s", $m[2]);
19
$item['name'] = translate("%s Archive", $m[2]);
21
$item['name'] = gettext($item['name']);
28
function GetItemList(LOGGROUP $grp = NULL, MASK $mask = NULL, $flags = 0) {
29
$list = parent::GetItemList($grp, $mask, $flags);
31
foreach ($list as &$item) {
32
if (preg_match("/^\s*(\d{3}-\w{3}-\d-\d{4}(-\d{4})?)\s*(\[([\w\d_\/]+)\])?\s*(.*)$/", $item["chan_name"], $m)) {
34
$item['name'] = "{$m[5]} [{$m[1]}]";
36
$item['name'] = "{$item['block_name']} [{$m[1]}]";
39
$item['axis'] = $m[4];
43
if (preg_match("/^(.*[^\s])\s*\[([^[]+)\]\s*$/", $item["name"], $m)) {
44
$item['name'] = "{$m[1]}, {$m[2]}";
46
// $item['name'] .= " [???-???-?-????-????]";
b'\\ No newline at end of file'