/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to services/loggroup.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-07-23 23:08:37 UTC
  • Revision ID: csa@dside.dyndns.org-20080723230837-0ummc05ybybbjlug
Minor refactoring: REQUEST/READER/CACHE listing flags, REQUEST listing functions, eliminating FETCH_BOTH fetches in DATABASE, support for partial menu generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
try {
9
9
    $req = new SOURCERequest($_GET);
10
 
 
11
 
    $reader = $req->CreateReader();
12
 
    $list = $reader->GetGroupList();
13
 
    unset($reader);
 
10
    $list = $req->GetGroupList();
14
11
 
15
12
    if (!count($list)) $error = translate("No LogGroups is found");
16
13
} catch (ADEIException $ex) {
22
19
if ($error) echo "<result><Error>$error</Error></result>";
23
20
else {
24
21
    echo "<result>";
25
 
    foreach ($list as $value=>$db) {
26
 
        echo "<Value name=\"" . xml_escape($db['name']) . "\" value=\"" . $value . "\"/>";
 
22
    foreach ($list as &$val) {
 
23
        echo "<Value name=\"" . xml_escape($val['db_group_name']) . "\" value=\"{$val['db_group']}\"/>";
27
24
    }
28
25
    echo "</result>";
29
26
}