/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 classes/readers/virtualreader.php

  • Committer: Suren A. Chilingaryan
  • Date: 2009-06-15 21:48:50 UTC
  • Revision ID: csa@dside.dyndns.org-20090615214850-gkt3t1ayd5t8lhf9
Fix group names in export of virtualgroups

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 }
60
60
*/
61
61
 
 
62
 
 
63
 function GetGroupServerID(LOGGROUP $grp = NULL) {
 
64
    $grp = $this->CheckGroup($grp);
 
65
 
 
66
    try {
 
67
        $greq = $this->srctree->GetGroupRequest($grp);
 
68
    } catch (ADEIException $ae) {
 
69
        return $this->srvid;
 
70
    }
 
71
    
 
72
    return $greq->props['db_server'];
 
73
 }
 
74
 
 
75
 function GetGroupDatabaseName(LOGGROUP $grp = NULL) {
 
76
    $grp = $this->CheckGroup($grp);
 
77
 
 
78
    try {
 
79
        $greq = $this->srctree->GetGroupRequest($grp);
 
80
    } catch (ADEIException $ae) {
 
81
        return $this->dbname;
 
82
    }
 
83
 
 
84
    return $greq->props['db_name'];
 
85
 }
 
86
 
 
87
 function GetGroupID(LOGGROUP $grp = NULL) {
 
88
    $grp = $this->CheckGroup($grp);
 
89
 
 
90
    try {
 
91
        $greq = $this->srctree->GetGroupRequest($grp);
 
92
    } catch (ADEIException $ae) {
 
93
        return $grp->gid;
 
94
    }
 
95
 
 
96
    return $greq->props['db_group'];
 
97
 }
 
98
 
 
99
/*
 
100
 function GetGroupReader(LOGGROUP $grp = NULL) {
 
101
    $grp = $this->CheckGroup($grp);
 
102
 
 
103
    try {
 
104
        $greq = $this->srctree->GetGroupRequest($grp);
 
105
    } catch (ADEIException $ae) {
 
106
        return $this;
 
107
    }
 
108
    
 
109
    return $this->CreateReader($greq);
 
110
    
 
111
 }
 
112
*/
 
113
 
62
114
 function GetGroupTitle(LOGGROUP $grp = NULL, $just_group = false) {
63
115
    $grp = $this->CheckGroup($grp);
64
116