3
class KATRINDBReader extends DBReader {
5
function __construct(&$props) {
6
parent::__construct($props);
10
function GetDatabaseList($flags = 0) {
11
$filter = $this->GetDatabaseFilter($flags);
12
$res = $this->SortDatabaseList($this->db->GetDatabaseList($filter));
14
foreach ($res as &$item) {
15
if (preg_match("/(.*)[._](\d{8})$/", $item['name'], $m)) {
16
// $item['name'] = gettext($m[1]) . ", " . translate("Archive of %s", $m[2]);
17
$item['name'] = translate("%s Archive", $m[2]);
19
$item['name'] = gettext($item['name']);
27
function GetItemList(LOGGROUP $grp = NULL, MASK $mask = NULL, $flags = 0) {
28
$list = parent::GetItemList($grp, $mask, $flags);
30
foreach ($list as &$item) {
31
if ((isset($item['uid']))&&(strcmp($item['name'], $item['uid']))) {
32
$item['name'] = "{$item['name']} [{$item['uid']}]";
b'\\ No newline at end of file'